The Mongols invaded Hungary and annihilated Béla's army in the Battle of Mohi on 11 April 1241. He escaped from the battlefield, but a Mongol detachment chased him from town to town as far as Trogir on the coast of the Adriatic Sea. Although he survived the invasion, the Mongols devastated the country before their unexpected withdrawal in March 1242. Béla introduced radical reforms in order to prepare his kingdom for a second Mongol invasion. He allowed the barons and the prelates to erect stone fortresses and to set up their private armed forces. He promoted the development of fortified towns. During his reign, thousands of colonists arrived from the Holy Roman Empire, Poland and other neighboring regions to settle in the depopulated lands. Béla's efforts to rebuild his devastated country won him the epithet of "second founder of the state" ().