Prague flourished during the 14th-century reign (1346–1378) of Charles IV, Holy Roman Emperor and the king of Bohemia of the new Luxembourg dynasty. As King of Bohemia and Holy Roman Emperor, he transformed Prague into an imperial capital and it was at that time by the area the third-largest city in Europe (after Rome and Constantinople).