It’s about time. We are now on Instagram!
1690s, from Modern Latin translation of Greek theos ek mekhanes, 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.