It rarely gets better than “The Sixth Sense” which came out in 1999. In my movie going experience, there has never been a better surprise ending than this movie, with the possible exception of the ending of Seven, 1995 which was more shocking than it was unexpected.
One of the most fascinating things about the difficult process of making a great movie, is that in so many cases a writer or director has only one great one in them during their entire creative working life. This is definitely true of writer/director M. Night Shyamalan who never got close to hitting a home run as good as this movie again in his career. I thought that the movie Unbreakable was very good when it came out in 2000 but this is a distant second to the Sixth Sense which had a level of quality that Shyamalan has never reached since.
If you have never seen The Sixth Sense, you owe it to yourself to see it. The ending is one of the best in movie history.