During the city's history, it was ruled by many countries. When part of Poland it was called Lwów (pronounced and sometimes spelled "Lvov"). In German, it was known as Lemberg, that was part of the Austrian and Austro-Hungarian Empires and again under Nazi German occupation. From 1350 until 1772 it belonged to the Kingdom of Poland and from 1918 to 1939 to the Republic of Poland.