Deus ex machina

[4][5] Its function is generally to resolve an otherwise irresolvable plot situation, to surprise the audience, to bring the tale to a happy ending or act as a comedic device.

[6] Deus ex machina is a Latin calque from Greek ἀπὸ μηχανῆς θεός (apò mēkhanês theós) 'god from the machine'.

[12] Aristotle (in the Poetics 15 1454b1) was the first to use a Greek term equivalent to the Latin phrase deus ex machina to describe the technique as a device to resolve the plot of tragedies.

[22] In 2006, when electronic fetal heart monitoring was being touted as a preventive measure for cerebral palsy, The New England Journal of Medicine denounced it as deus ex machina.

Aristotle praised Euripides, however, for generally ending his plays with bad fortune, which he viewed as correct in tragedy, and somewhat excused the intervention of a deity by suggesting that "astonishment" should be sought in tragic drama:[28] Irrationalities should be referred to what people say: That is one solution, and also sometimes that it is not irrational, since it is probable that improbable things will happen.Such a device was referred to by Horace in his Ars Poetica (lines 191–2), where he instructs poets that they should never resort to a "god from the machine" to resolve their plots "unless a difficulty worthy of a god's unraveling should happen" [nec deus intersit, nisi dignus uindice nodus inciderit; nec quarta loqui persona laboret].

Toward the end of the 19th century, Friedrich Nietzsche criticized Euripides for making tragedy an optimistic genre by use of the device, and was highly skeptical of the "Greek cheerfulness," prompting what he viewed as the plays' "blissful delight in life.

"[30] The deus ex machina as Nietzsche saw it was symptomatic of Socratic culture, which valued knowledge over Dionysiac music and ultimately caused the death of tragedy:[31] But the new non-Dionysiac spirit is most clearly apparent in the endings of the new dramas.

Hence an earthly resolution for tragic dissonance was sought; the hero, having been adequately tormented by fate, won his well-earned reward in a stately marriage and tokens of divine honour.

[26] However, other scholars have looked at Euripides' use of deus ex machina and described its use as an integral part of the plot, designed for a specific purpose.

[33] Half of Euripides' eighteen extant plays end with the use of deus ex machina, therefore it was not simply a device to relieve the playwright of the embarrassment of a confusing plot-ending.

[25] Some 20th-century revisionist criticism suggests that deus ex machina cannot be viewed in these simplified terms, and contends that the device allows mortals to "probe" their relationship with the divine.

[35] Rush Rehm in particular cites examples of Greek tragedy in which the deus ex machina complicates the lives and attitudes of characters confronted by the deity, while simultaneously bringing the drama home to its audience.

Deus ex machina in Euripides' Medea , performed in 2009 in Syracuse, Italy; the sun god sends a golden chariot to rescue Medea.
Characters ascend into heaven to become gods at the end of the 1650 play Andromède .