At the end of the movie, possessed caretaker Jack Torrance freezes to death, allowing his wife and son, Wendy and Danny, to escape. Then we see that Jack has become a ghost, or maybe he was always a ghost, or maybe you're the ghost. Anyway, it's a creepily ambiguous ending that doesn't spell things out for the audience.
But it probably involves ghosts.
The Dumb Ending That Almost Happened:
The original version of The Shining featured an epilogue with Wendy and Danny in a hospital. The hotel manager, Ullman, whom you only ever see for a brief sequence in the beginning of the movie, shows up and asks Wendy to come live with him in L.A.
"Hi, I'm here to throw a romantic Hail Mary."
"Is ... is he serious?"
"Haunted hotel and chill?"