What Do You Do at the End of Kingdom Hearts 1?

You go through the Door of Darkness and fight Ansem. The encounter is not a single battle — Ansem splits into two further forms embedded within himself, and you have to enter both.

Donald and Goofy are with you inside, and they contribute to bringing him down. Once Ansem is finally beaten, the closing cutscene plays and the game ends.

Save before the door if you want the option of returning, since there is nothing further to do afterwards.