deus ex machina (n.) Look up deus ex machina at Dictionary.com
1690s, from Modern Latin translation of Greek a?p?o? mekhanes theos, literally "the god from the machina," the device by which "gods" were suspended over the stage in Greek theater (see machine). The fem. is dea ex machina.