During the Battle of the Trident, Rhaegar Targaryen killed Robert Baratheon and won the battle. Deafeted lords bent the knee in exchange for royal pardons. Together with rebel forces, Rhaegar took King's Landing. Jaime Lannister killed the Mad King and saved the city. After that, newly crowned King Rhaegar and his good brother Eddard went to the Tower of Joy