In 1701, the Holy Roman Emperor and Polish King allowed Brandenburg-Prussia to call itself "Kingdom of Prussia" with Frederick I ("the Great") as its king. Under Frederick II, Prussia waged war against Austria and took Silesia. The wars ended in 1763; Prussia was then the most powerful state in eastern Germany. Other parts of Germany, including Pomerania, went to Prussia because of marriage or death.