The Polish–Ottoman War (1672–1676) ended with the Treaty of Żurawno, in which the Polish–Lithuanian Commonwealth ceded control of most of its Ukrainian territories to the empire. The war showed the increasing weakness and disorder of the Commonwealth, who by the second half of the 17th century had started its gradual decline that would culminate a century later with the partitions of Poland.