When the Ender Dragon dies, a portal will open up, allowing you to leave the End. You'll also get a ton of player experience and a Dragon Egg will drop, which you can place anywhere as a trophy for your achievement.