After Frederick's defeat in the Battle of White Mountain in 1620, 27 Bohemian estates leaders together with Jan Jesenius, rector of the Charles University of Prague, were executed on the Prague's Old Town Square on 21 June 1621, and the rest were exiled from the country; their lands were then given to Catholic loyalists (mostly of Bavarian and Saxon origin). That ended the pro-reformation movement in Bohemia and also ended the role of Prague as ruling city of the Holy Roman Empire.