The Treaty of Saint Petersburg was concluded on 5 May 1762, and ended the fighting in the Seven Years' War between Prussia and Russia. The treaty followed the accession of Emperor Peter III, who admired the Prussian king Frederick the Great. It allowed the latter to concentrate on his other enemies, Austria and Saxony, in what became known as the Second Miracle of the House of Brandenburg.
The treaty was signed on by Chancellor Vorontsov for Russia and for Prussia by its envoy, Baron Wilhelm Bernhard von der Goltz. Russia pledged to assist in concluding peace among the individual participants in the Seven Years' War and to return to Prussia all lands occupied by Russian troops during the war.