A Greek invention, literally "the
god from the machine" who appears at the last
moment and resolves the loose ends of a play.
Today, the term refers to anyone, usually of some
stature, who untangles, resolves, or reveals the
key to the plot of a work. See the conclusion of
Euripides's Medea for an example or the sheriff at
the end of Desire Under the Elms by O'Neill.