However, after this period John, charismatic and a favourite of the European royal court, significantly increased Bohemia's prestige internationally and greatly extended its territory. From 1319 to 1329 he regained control of Upper Lusatia for the Czech kingdom, followed by the majority of Silesian princedoms from 1327 to 1342, thus laying the foundations of the co-states of the Czech Crown which would be constitutionally governed by his son Charles. He gained the strategically important Cheb region in 1322 to assist Louis IV in the Battle of Mühldorf, where Frederick of Habsburg was defeated.