>>111168457Ganondorf didn't have a kingdom, all the Gerudo had was a desert. And there were at least two major wars, the Imprisoning War, which was really the events of OoT, and the Hyrulean Civil War, which was the war between all the races of Hyrule for the Triforce. Only one race got fucked, which were the Interlopers, who tried to use the Fused Shadow to fight the Goddesses, and for this they were banished to the Twilight Realm the Goddesses created specifically for them.
And he was befriending the King of Hyrule in OoT because he wanted access to the Temple of Time, and the Sacred Realm by extension. In OoT, he succeeds by staging a coup of Hyrule Castle and killing the king, and if you go to the castle town, you'll see that knight on the left side of the town who's on the verge of death. However, when Link went back in time at the end of OoT, he warned past Zelda of that occurrence, and she then told the King, and when Ganondorf tried to take over Hyrule Castle, he was arrested and tried for treason, and then he "mysteriously" got the Triforce of Power, killed the Water Sage, and then the Ancient Sages banished him to the Twilight Realm, where he met Zant many years later, and thus set the stage for TP.