
deus ex machina
/ˌdeɪəs eks ˈmækɪnə/
an unexpected power or event that saves a seemingly hopeless situation
“The sudden inheritance was a deus ex machina that resolved all their financial problems.”
Origin: Latin: deus god + ex from/out of + machina machine (translation of Greek apo mēkhanēs theos)