deus ex machina\DAY-uhs-eks-MAH-kuh-nuh; -nah; -MAK-uh-nuh\, noun:
1. In ancient Greek and Roman drama, a god introduced by means of a crane to unravel and resolve the plot.
2. Any active agent who appears unexpectedly to solve an apparently insoluble difficulty.