The Khmelnytsky Uprising, also known as the Cossack–Polish War, Khmelnytsky insurrection, or the National Liberation War, and Cossack Revolution, was a successful Cossack rebellion with elements of religious war that took place between 1648 and 1657 in the eastern territories of the Polish–Lithuanian Commonwealth, resulting in Cossack victory and the creation of the Cossack Hetmanate in present-day Ukraine. Under the command of Cossack Hetman Bohdan Khmelnytsky, the Zaporozhian Cossacks, allied with the local Ruthenian (Ukrainian) peasantry and initially the Crimean Tatars, fought against the Commonwealth's forces. The war was accompanied by mass atrocities committed by Cossacks against prisoners of war and the civilian population, especially Poles, Jews, Roman Catholic and Ruthenian Uniate clergy, as well as savage reprisals by the Polish szlachta and the loyalist Jeremi Wiśniowiecki, the voivode of Ruthenian descent (military governor) of the Ruthenian Voivodeship.
The uprising has a symbolic meaning in the history of Ukraine's relationship with Poland and Russia. It ended the Polish Catholic szlachta's domination over the Ukrainian Orthodox population; at the same time, it led to the eventual incorporation of eastern Ukraine into the Tsardom of Russia initiated by the 1654 Pereiaslav Agreement, whereby the Cossacks would swear allegiance to the tsar while retaining a wide degree of autonomy. The event triggered a period of political turbulence and infighting in the Hetmanate known as the Ruin. The success of the anti-Polish rebellion, along with internal conflicts in Poland and concurrent invasions waged by Russia and Sweden against the Poles, ended the Polish Golden Age and caused a secular decline of Polish power during the period known as "the Deluge".