East Prussia (German: Ostpreußen [ˈɔstˌpʁɔɪ̯sn̩] ) was a province of the Kingdom of Prussia from 1772 to 1829 and again from 1878 (with the Kingdom itself being part of the German Empire from 1871); following World War I it formed part of the Weimar Republic's Free State of Prussia, until 1945. Its capital city was Königsberg (present-day Kaliningrad). East Prussia was the main part of the region of Prussia along the southeastern Baltic Coast.
The bulk of the ancestral lands of the Baltic Old Prussians were enclosed within the later province of East Prussia. During the 13th century, the native Prussians were conquered by the crusading Teutonic Knights. After the conquest they were gradually converted to Christianity. As a result of the medieval Ostsiedlung, Germans became the dominant ethnic group, while Poles and Lithuanians formed sizeable minorities. From the 13th century, the region of Prussia was part of the monastic state of the Teutonic Knights. After the Second Peace of Thorn in 1466 it became a part of the Kingdom of Poland, either directly (Warmia) or as a fief (remainder). In 1525, with the Prussian Homage, the territory became the Duchy of Prussia, a vassal duchy of Poland. It gained full sovereignty in 1657, when Poland renounced its feudal rights in the Treaty of Bromberg.