Napoleon was bedeviled by an enemy that attacked without forming a front or rear. The Cossack fighters who undid him in Russia in 1812 had learned a lot from the Spanish and perfected the use of guerrilla warfare; their harassment caused far more damage than anything the rather incompetent Russian army could inflict.