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.[deus ex machina etymology, deus ex machina origin, 英语词源]