Guerrilla warfare is a form of irregular warfare in which small groups of combatants, such as paramilitary personnel, armed civilians, or irregulars, use military tactics including ambushes, sabotage, raids, petty warfare, hit-and-run tactics, and mobility, to fight a larger and less-mobile traditional military.
Although the term "guerrilla warfare" was coined in the context of the Peninsular War in the 19th century, the tactical methods of guerrilla warfare have long been in use. In the 6th century BC, Sun Tzu proposed the use of guerrilla-style tactics in The Art of War. The 3rd century BC Roman general Quintus Fabius Maximus Verrucosus is also credited with inventing many of the tactics of guerrilla warfare. Guerrilla warfare has been used by various factions throughout history and is particularly associated with revolutionary movements and popular resistance against invading or occupying armies.
Guerrilla tactics focus on avoiding head-on confrontations with enemy armies, instead engaging in limited skirmishes with the goal of exhausting adversaries and forcing them to withdraw. Guerrilla groups often depend on the logistical and political support of either the local population or foreign backers who do not engage in an armed struggle but sympathize with the guerrilla group's efforts.
The Spanish word guerrilla is the diminutive form of guerra ('war'). The term became popular during the early-19th century Peninsular War, when, after the defeat of their regular armies, the Spanish and Portuguese people successfully rose against the Napoleonic troops and defeated a highly superior army using the guerrilla strategy. In correct Spanish usage, a person who is a member of a guerrilla unit is a guerrillero ([geri'?e?o]) if male, or a guerrillera ([geri'?e?a]) if female.
The term guerrilla was used in English as early as 1809 to refer to the individual fighters (e.g., "The town was taken by the guerrillas"), and also (as in Spanish) to denote a group or band of such fighters. However, in most languages guerrilla still denotes the specific style of warfare. The use of the diminutive evokes the differences in number, scale, and scope between the guerrilla army and the formal, professional army of the state.
Prehistoric tribal warriors presumably employed guerrilla-style tactics against enemy tribes. Evidence of conventional warfare, on the other hand, did not emerge until 3100 BC in Egypt and Mesopotamia. The Chinese general and strategist Sun Tzu, in his The Art of War (6th century BC), became one of the earliest to propose the use of guerrilla warfare. This inspired developments in modern guerrilla warfare.
In the 3rd century BC, Quintus Fabius Maximus Verrucosus, widely regarded as the "father of guerrilla warfare",[need quotation to verify] devised the Fabian strategy which the Roman Republic used to great effect against Hannibal's army. This strategy would influence guerrilla tactics into the modern era.
In the 17th century, Chhatrapati Shivaji Maharaj, founder of the Maratha Empire, pioneered Shiva sutra or Ganimi Kava (Guerrilla Tactics) to defeat the many times larger and more powerful armies of the Mughal Empire.
Kerala Varma (Pazhassi Raja) (1753-1805) used guerrilla techniques in his war against the British East India Company in India between 1790 and 1805. Arthur Wellesley adopted the term "guerrilla" into English from Spanish usage in 1809 - after the Pazhassi revolt against the British. Arthur Wellesley (in India 1797-1805) had commanded forces assigned to defeat Pazhassi's techniques, but failed.
The Moroccan national hero Abd el-Krim (c. 1883 - 1963) and his father unified the Moroccan tribes under their control and took up arms against the Spanish and French invaders in 1920. For the first time in history, tunnel warfare was used alongside modern guerrilla tactics, which caused considerable damage and annoyance to both the colonial armies in Morocco. 
In the early 20th century Michael Collins and Tom Barry both developed many tactical features of guerrilla warfare during the guerrilla phase of the 1919-1921 Irish War of Independence. Collins developed mainly urban guerrilla-warfare tactics in Dublin city (the Irish capital). Operations in which small Irish Republican Army (IRA) units (3 to 6 guerrillas) quickly attacked a target and then melted back into civilian crowds frustrated the British enemy, who often killed Irish civilians in revenge for attacks on British Crown Forces - which just made more Irish people support the Irish Republican Army guerrillas. The best example of this occurred on Bloody Sunday (21 November 1920), when Collins's assassination unit, known as "The Squad", wiped out a group of British intelligence agents ("the Cairo Gang") early in the morning (14 were killed, six were wounded) - some regular officers were also killed in the purge. That afternoon a British force of mixed units took revenge ,shooting at a crowd at a football match in Croke Park, killing fourteen civilians and injuring 60 others. In west County Cork, Tom Barry was the commander of the IRA West Cork brigade. Fighting in west Cork was rural, and the IRA fought in much larger units than their comrades in urban areas. These units, called "flying columns", engaged British forces in large battles, usually for between 10 - 30 minutes. The Kilmichael Ambush in November 1920 and the Crossbarry Ambush in March 1921 are the most famous examples of Barry's flying columns causing large casualties to enemy forces.
Guerrilla warfare is a type of asymmetric warfare: competition between opponents of unequal strength. It is also a type of irregular warfare: that is, it aims not simply to defeat an enemy, but to win popular support and political influence, to the enemy's cost. Accordingly, guerrilla strategy aims to magnify the impact of a small, mobile force on a larger, more-cumbersome one. If successful, guerrillas weaken their enemy by attrition, eventually forcing them to withdraw.
Tactically, guerrillas usually avoid confrontation with large units and formations of enemy troops but seek and attack small groups of enemy personnel and resources to gradually deplete the opposing force while minimizing their own losses. The guerrilla prizes mobility, secrecy, and surprise, organizing in small units and taking advantage of terrain that is difficult for larger units to use. For example, Mao Zedong summarized basic guerrilla tactics at the beginning of the Chinese Civil War as:
"The enemy advances, we retreat; the enemy camps, we harass; the enemy tires, we attack; the enemy retreats, we pursue.":p. 124
At least one author credits the ancient Chinese work The Art of War with inspiring Mao's tactics.:pp. 6-7 In the 20th century, other communist leaders, including North Vietnamese Ho Chi Minh, often used and developed guerrilla warfare tactics, which provided a model for their use elsewhere, leading to the Cuban "foco" theory and the anti-Soviet Mujahadeen in Afghanistan.
In addition to traditional military methods, guerrilla groups may rely also on destroying infrastructure, using improvised explosive devices, for example. They typically also rely on logistical and political support from the local population and foreign backers, are often embedded within it (thereby using the population as a human shield), and many guerrilla groups are adept at public persuasion through propaganda and use of force. The opposing army may come to suspect all civilians as potential guerrilla backers. Many guerrilla movements today also rely heavily on children as combatants, scouts, porters, spies, informants, and in other roles. It has drawn international condemnation. Many states also recruit children into their armed forces.
Some guerrilla groups also use refugees as weapons to solidify power or politically destabilize an adversary. The FARC guerrilla war displaced millions of Colombians, and so did the tribal guerrilla warfare (against Soviets) in Afghanistan. The civilian population living in the area might be suspected of having collaborated with the enemy and find itself displaced, as the guerrillas fight for territory.
The growth of guerrilla warfare in the 20th century was inspired in part by theoretical works on guerrilla warfare, starting with the Manual de Guerra de Guerrillas by Matías Ramón Mella written in the 19th century and, more recently, Mao Zedong's On Guerrilla Warfare, Che Guevara's Guerrilla Warfare, and Lenin's text of the same name, all written after the successful revolutions carried by them in China, Cuba and Russia, respectively. Those texts characterized the tactic of guerrilla warfare as, according to Che Guevara's text, being "used by the side which is supported by a majority but which possesses a much smaller number of arms for use in defense against oppression".
Why does the guerrilla fighter fight? We must come to the inevitable conclusion that the guerrilla fighter is a social reformer, that he takes up arms responding to the angry protest of the people against their oppressors, and that he fights in order to change the social system that keeps all his unarmed brothers in ignominy and misery.
In the 1960s, the Marxist revolutionary Che Guevara developed the foco (Spanish: foquismo) theory of revolution in his book Guerrilla Warfare, based on his experiences during the 1959 Cuban Revolution. This theory was later formalised as "focal-ism" by Régis Debray. Its central principle is that vanguardism by cadres of small, fast-moving paramilitary groups can provide a focus for popular discontent against a sitting regime, and thereby lead a general insurrection. Although the original approach was to mobilize and launch attacks from rural areas, many foco ideas were adapted into urban guerrilla warfare movements.
There is no commonly accepted definition of "terrorism", and the term is frequently used as a political tactic by belligerents (most often by governments in power) to denounce opponents whose status as terrorists is disputed.
Contrary to some terrorist groups, guerrillas usually work in open positions as armed units, try to hold and seize land, do not refrain from fighting enemy military force in battle and usually apply pressure to control or dominate territory and population. While the primary concern of guerrillas is the enemy's active military units, terrorists largely are concerned with non-military agents and target mostly civilians. Guerrilla forces principally fight in accordance with the law of war (jus in bello). In this sense, they respect the rights of innocent civilians by refraining from targeting them.