There are cases - for example, the American Revolution. George Washington's army lost just about every battle with the British, who had a much better army. The war was basically won by guerrilla forces that managed to undermine the British occupation.
Chomsky, Noam. Understanding Power: The Indispensable Chomsky. Edited by Peter R. Mitchell and John Schoeffel, The New Press, 2002.
Sourced by: Quote.org sourced