After the Mongol withdrawal, Béla IV abandoned his policy of recovering former crown lands. Instead, he granted large estates to his supporters, and urged them to construct stone-and-mortar castles. He initiated a new wave of colonization that resulted in the arrival of a number of Germans, Moravians, Poles, and Romanians. The king re-invited the Cumans and settled them in the plains along the Danube and the Tisza. A group of Alans, the ancestors of the Jassic people, seems to have settled in the kingdom around the same time.
New villages appeared, consisting of timber houses built side by side in equal parcels of land. Huts disappeared, and new rural houses consisting of a living room, a kitchen and a pantry were built. The most advanced agricultural techniques, including asymmetric heavy ploughs, also spread throughout the kingdom. Internal migration was likewise instrumental in the development of the new domains emerging in former royal lands. The new landholders granted personal freedom and more favorable financial conditions to those who arrived in their estates, which also enabled the peasants who decided not to move to improve their position. Béla IV granted privileges to more than a dozen towns, including Nagyszombat (Trnava, Slovakia) and Pest.
When Ladislaus IV was murdered in 1290, the Holy See declared the kingdom a vacant fief. Although Rome granted the kingdom to his sister's son, Charles Martel, crown prince of the Kingdom of Naples, the majority of the Hungarian lords chose Andrew, the grandson of Andrew II and son of a prince of dubious legitimacy. With Andrew III's death, the male line of the House of Árpád became extinct, and a period of anarchy began.