The victory did not give the Ottomans the security they wanted. Buda was left undefended; only the French and Venetian ambassadors waited for the Sultan to congratulate him on his great victory. Though they entered the unguarded evacuated Buda and pillaged the castle and surroundings, they retreated soon afterwards. It was not until 1541 that the Ottomans finally captured and occupied Buda following the 1541 Siege of Buda. However, for all intents and purposes, the Battle of Mohács meant the end of the independent Kingdom of Hungary as a unified entity. Amid political chaos, the divided Hungarian nobility elected two kings simultaneously, John Zápolya in 1526 and Ferdinand of Austria in 1527. The Ottoman occupation was contested by the Habsburg Archduke of Austria, Ferdinand I, Louis's brother-in-law and successor by treaty with King Vladislaus II.