Final answer:
The term 'Deus ex machina' originates from Greek theater and refers to a sudden, unexpected solution to a problem or miraculous person/event that resolves a challenging situation.
Step-by-step explanation:
The Latin phrase that you're referring to is Deus ex machina, literally translating to 'god from the machine'. This term was originally used in Greek theater, where it referred to a scene in which a problem was solved by a contrived or unexpected divine intervention, often brought onto the stage by a 'machine'. In contemporary literature and storytelling, the term has evolved to mean any sudden and unexpected solution to a seemingly impassable problem, or a miraculous person or event that magically resolves a difficult situation.
Learn more about Deus ex machina