Different games have different end points. The first "ending" is when you beat the Elite Four but there is usually some more story after that.
In D/P/Pt you go to Stark Mountain like speed freak said. In HG/SS you beat all the Kanto gyms and then Red.
Then of course, the other ending is when you complete the Pokedex to 100%!