Deus ex machina is a Latin calque from Greek, Modern ἀπὸ μηχανῆς θεός (apò mēkhanês theós), meaning 'god from the machine'. The term was coined from the conventions of ancient Greek theater, where actors who were playing gods were brought onto stage using a machine. The machine could be either a crane (mechane) used to lower actors from above or a riser which brought them up through a trapdoor. Aeschylus introduced the idea, and it was used often to resolve the conflict and conclude the drama. The device is associated mostly with Greek tragedy, although it also appeared in comedies.