Endings may be the most important part of your story
Andrew Stanton, writer and director of multiple Pixar movies, makes the case that the ending is the most important part of your story. In fact by stating "Storytelling is joke telling," he argues that every element in your story is all about working up to the ending as in the punchline in a joke.