The Continental Congress declared King George a tyrant who trampled the colonists' rights as Englishmen, and they declared the colonies free and independent states on July 2, 1776. ... Finally, a combined American and French force captured a second British army at Yorktown in the fall of 1781, effectively ending the war.
You can take the Vietnam War for instance civil disobedience meaning the people in the US were constantly rioting and protesting the war and saying how much that they didn't want to be in it so eventually the conflict / war stopped.