The Haitian Revolution (1791–1804), was unique in that the slaves ended slavery by defeating the French Army.
The Roman Servile Wars (three)
The Fifth Ottoman-Venetian War, fought to defeat the Ottomans and free Christian slaves.
The Barbary Wars, in which ended when the U.S. Navy defeated Barbary Pirates, ending the threat of slavery to millions of Europeans.
The New Zealand Wars, ended native slavery in in New Zealand in the 1860s.
There are more.