The term deus ex machina is used to refer to a narrative ending in which an improbable event is used to resolve all problematic situations and bring the story to a (generally happy) conclusion.
the term deus ex machina is used to refer to a narrative ending in which an improbable event is used to resolve all problematic situations and bring the story to a (generally happy) conclusion