King in Prussia (German: König in Preußen) was a title used by the Prussian kings (also in personal union Electors of Brandenburg) from 1701 to 1772. Subsequently, they used the title King of Prussia (König von Preußen).
The House of Hohenzollern ruled Brandenburg as Prince-Electors, and were subjects of the Holy Roman Emperor. Since 1618, the Electors of Brandenburg had also ruled the Duchy of Prussia, which lay outside the empire, in a personal union. The dual state was known unofficially as Brandenburg-Prussia. Originally the dukes of Prussia held the fief as vassals of the King of Poland, until the Treaties of Labiau (1656) and Bromberg (1657), with which Frederick William, the Great Elector, achieved full sovereignty from the Polish Crown. His son, Elector Frederick III, then sought to show his greatness by adopting the title king.