All the plotlines and subplots are wrapped up, and the author ensures that the story comes to a satisfactory end.
The resolution or denouement is the conclusion of the story. All the plotlines and subplots are wrapped up, and the author ensures that the story comes to a satisfactory end.