Aizpute (German: Hasenpoth; historically Polish: Hazenpot) is a town in South Kurzeme Municipality in the Courland region of Latvia, in the valley of the Tebra River, situated 50 km (31 mi) northeast of Liepāja.
Bishop of Courland Otto granted Magdeburg rights to Aizpute in 1378.
After the Polish-Swedish war, all trade and shipping infrastructure was destroyed and Aizpute started to experience decline.
During the period of 1611-1795, it was under the power of the Polish–Lithuanian Commonwealth as a capital of the semi-autonomous District of Pilten.
During the Russian Revolution of 1905, Aizpute was one of the places where local revolutionists showed armed resistance to the Cossack punitive units.