The Battle of Khotyn or Battle of Chocim or Hotin War was a battle on 11 November 1673, where the forces of the Polish–Lithuanian Commonwealth under hetman John Sobieski defeated Ottoman Empire forces led by Hussain Pasha. It reversed the fortunes of the previous year, when Commonwealth weakness led to the signing of the Treaty of Buchach, and allowed John Sobieski to win the upcoming royal election and become the king of Poland.