The Russo-Prussian alliance signed by the Kingdom of Prussia and the Russian Empire on 11 April 1764. It was pivotal to the people of Prussia and Russia, and it followed the end of the Seven Years' War. The alliance agreement expanded on the Treaty of Saint Petersburg of 1762, which ended the war between those two countries. It was a defensive alliance, in which each party declared it would protect the territorial stability of the other. It further allowed both countries to intervene in the Polish–Lithuanian Commonwealth, which was one of the primary intentions of the treaty.