The requirement here is...
A major war fought for the express purpose of liberating slaves/serfs in a Great Power or Secondary Power, by a power or coalition of powers that do not hold slaves/keep serfs.
Bonus points if the target of this war is the still-slaveholding US.
No, the American Civil War does not count since the Union did not liberate its own slaves until after the end of the war.