Deus ex machina

Deus ex machina (Latin): literally, a god out of a machine, from the ancient theatrical practice of using a machine to produce on stage a god capable of solving problems human beings are unable to solve. Hence, reliance on providential intervention or other unspecified means for the solution of an otherwise unsolvable human problem.