Deus ex machina

Definition
Deus ex machina (Latin for "god from the machine") is "[a] plot device in which an unresolvable problem is conveniently fixed by an unlikely solution."