at the eleventh hour

[at the eleventh hour] {prep. phr.} At the last possible time.

Aunt Mathilda got married at the eleventh hour; after all, she was already 49 years old.