In 1526, after the Battle of Mohács, the Kingdom of Hungary was overrun by the Ottomans, but effectively split into 3 parts in 1541 when the Ottomans captured Buda. The Habsburgs got a foothold in the north and west (Royal Hungary), with the new capital Pozsony. King John I of Hungary from the Zápolya house, the former voivode of Transylvania and the wealtiest and the most powerful landlord after Mohacs, secured the eastern part of the Kingdom (known as Eastern Hungarian Kingdom) On 29 February 1528, the sultan assented to an alliance with Zapolya and gave written assurance of his support.From 1541 or 1542, the house of Zápolya also controlled the region that after 1571 became known as Partium.