In Greek theater, actors who were portraying gods were brought onstage using a machine-either a crane that lowered them from above or a riser that brought them up through a hidden door in the floor. The origin of the expression ' deus ex machina', which is Latin and literally translates to ' god of the machine', is rooted in Ancient Greek history.
Another famous deus ex machina moment in modern film is the T-Rex suddenly showing up to fight off the raptors at the end of Jurassic Park. The most popular examples of deus ex machina in general cinema include a bucket of water killing the Wicked Witch of the West in The Wizard of Ozand R2-D2 using never-before-mentioned rocket boosters to save Padmé in Star Wars Episode II: Attack of the Clones. Deus ex machina isn't merely a plot twist or a convenience, because the power or event that comes to the rescue is always something sudden that was hitherto unknown. The trope occurs when an unexpected power or event abruptly saves an otherwise hopeless situation.
Deus ex machina is a common plot device-or trope- that is commonly utilized in movies, and especially in the horror movie space.