The Treaty of Hamburg was signed on 22 May 1762 in the Free City of Hamburg between Sweden and Prussia during the Pomeranian War, a theater of the Seven Years' War.