どたんば [dotanba] – Means, “at the last moment” or “in a very dire situation.”
In the Edo period, criminals sentenced to death by decapitation were made to lie down on an earthen (土) platform (壇) to for their execution. The modern meaning is derived from this image, but fortunately it hasn’t retained the grotesque overtones.
ｔo capture a come-from-behind victory at the very end
ドタキャン [dotakyan], a popular expression based on this word is a shortening of the phrase 土壇場でキャンセル, “to cancel (plans to meet someone) at the last minute.”