during the middle ages prague became very important as the capital of the holy roman empire ruled by charles iv (1316-1378) who was the most powerful ruler in europe at the time. charles made prague a great city, building st vitus cathedral, a university, and a famous bridge called charles bridge which still exists.