-> Blood spilt and machines destroyed are not the measure of this war. This is our Jihad, we are the mujaheddin and thusly we are invincible, for God is Great!

The beginning of the Soviet War in Afghanistan is shrouded in paradoxes. The invasion supposedly began on Christmas Day 1979, with the arrival of KGB and Spetsnaz operatives in Kabul to overthrow the government of Afghan leader Hafizullah Amin. In two days, they would duly carry out their mission and were joined by a large force of Soviet conventional troops that crossed the border into Afghanistan. Yet, small numbers of Soviet troops had already been present in the country for half a year already, to support the Amin government in its fight against the growing insurgency waged by traditionalist rural populations that had been ongoing on some form for years. These troops, moreover, had been deployed at the express request of Amin himself, who considered himself until his last days to be a close ally of the Soviet Union. Even without Amin, the insurgency would continue to escalate, with the Soviets shouldering the main burden of fighting. Eventually, Soviet forces would leave a decade later, having wasted a great deal of treasure and blood and having been grossly humiliated, with the Soviet Union itself falling apart shortly thereafter. On the whole, the Soviet intervention in Afghanistan was a complicated affair that was difficult to define clearly and left a great deal of mess that remains unresolved today.

Soviet intervention was preceded by a series of political upheavals in 1970s Afghanistan that supplanted the old monarchy that enjoyed only loose allegiance of various tribespeople in the rural periphery and, eventually, by the end of the decade, left a band of communist revolutionaries in nominal charge of the country, with little effective control beyond a handful of cities. The Afghan communist leaders, who had only taken power through a coup in 1978, were fanatical ideologues whose attempts at modernization (such as forcing girls to attend schools!) were making the bad situation even more complicated by further offending the religious and the tribal populations of the country (not always the same: not all religious were tribal and not all tribal were religious, although many were both), among whom there was already an ongoing, endemic insurgency against the central government(s) in Kabul even before the coup. The insurgency reached a peak with the Herat Uprising in March, 1979, in which thousands of government officials, school teachers, non-religious in general, as well as several Soviet advisers to the Afghan government (and, possibly, their families) were massacred by Islamist rebels (which included a substantial number of mutinying government troops led by Ismail Khan, who would become a leading mujaheddin commander later. To confuse the matters further, these rebels were mostly aligned with Iran and were largely of ethnic Hazara who were Shi'ites, not Sunni Pashtuns with connections with Pakistan who would later make up much of mujeheddin, and later, Taliban forces.)

Shocked by the magnitude of the incident and the fact that thousands of its troops defected to the rebels, the Afghan government requested presence of Soviet troops in April, 1979 (because Afghan troops could no longer be relied upon to support the government, in light of the mass defection at Herat), and after declining initially, the Kremlin deployed small contingents, mostly special forces and air force, which were in place by June. However, KGB determined that not only was the Afghan government making the situation worse through their ideological extremism that alienated the mostly traditionally minded population of Afghanistan, there was a serious danger that they might turn to other countries (China, Pakistan, or even the West) if they did not get the kind of aid they were demanding from the Soviets (such switches in alliances had already taken place by 1970s with a number of former Soviet client regimes, including Egypt, Albania, Somalia, etc.). In attempt to stabilize the situation, Soviets decided to decapitate the regime by assassinating Hafizullah Amin and install a more pliable regime in its place. Soviet special forces operatives and KGB agents arrived in Kabul on Christmas Day, under cover that they were simply to reinforce the troops already in the country. After a failed assassination attempt via poisoning, they assaulted the presidential palace two days later and killed Amin, although with much difficulty because of the large number of bodyguards who protected him. At the same time, a large reinforcement of Soviet conventional forces entered Afghanistan from the north and Babrak Kamal was installed in Kabul as the new leader while the Soviets proclaimed the "liberation" of the country from the misrule of the Amin regime. From this point on, the Soviets became the main participant in the conflict in Afghanistan, as the unrest became even more intense and some Afghan army units openly mutinied against what they saw as a heavy-handed act of foreign aggression. The forcible removal of Amin, rather than calming the situation down, actually grossly exacerbated the crisis and trapped the Soviets in a long term large scale intervention that they hadn't planned for.

The net result of this invasion was to kill the already seriously wounded détente and start what became known as the "Second ColdWar". A large scale boycott of the 1980 Moscow Olympics followed, as well as an embargo on U.S. grain sales to the USSR.

The United States, Pakistan, Saudi Arabia, Iran, and several other countries, provided arms and money to the rebels, known as the mujaheddin, [[NiceJobBreakingItHero inadvertently creating Al-Qaeda in the process]]. The Soviets ended up in a VietnamWar-style quagmire.

By mid-1980s, Soviets recognized that Afghanistan became a heavy drain on their resources without any obvious end in sight. They became resentful of Kamal, the leader that they themselves installed, as he did not appear to be making significant attempt to develop an "independent" support base for the regime other than reliance on continued Soviet presence. Eventually, in 1985, Kamal was deposed in favor of Mohammed Najibullah by the Soviets as the preliminary step towards reducing their presence in Afghanistan. Finally, the Soviets pulled out in 1989 and, much like the United States in South Vietnam, left behind a government which sustained itself for only a few years before collapsing in 1992. The Soviet-backed government in Kabul fought to a successful stalemate until the funding dried up during the Yeltsin presidency (Much like the government of South Vietnam, which was able to blunt North Vietnamese offensive with continued military aid and air support from United States until Case-Church Amendment of June 1973 cut off further US support). Afghanistan's civil war continues to this day, as part of TheWarOnTerror.

This became a rather popular setting for Western media in the 1980s, as for many the proof that the Soviet Union was an Evil Empire was [[http://en.wikipedia.org/wiki/Afghan_Girl_(photo) an orphaned girl in a Pakistani refugee camp]]. This usually led to portrayals of any mujaheddin as noble, heroic [[FanOfUnderdog underdogs]] versus said EvilEmpire, which can be a bit jarring [[TheGreatPoliticsMessUp in light of current events]].

Following the collapse of the USSR,
media took a look at one of its darkest hours. There are also plenty of Afghan works set here.

!!Tropes Associated with this conflict
* ChronicBackstabbingDisorder: Soviets began large scale intervention by killing Amin, who was actually their strongest ally in Afghanistan who asked for Soviet troops in the first place. They forced out Babrak Kamal in 1985, after having installed him in power only five years ago because they thought "Comrade Kamal is hoping to continue staying in Kabul with our help," i.e. he was too dependent on Soviet help. The Soviets then hung out Kamal's successor, Mohammed Najibullah, out to dry because they didn't want to spend money propping him up.
* ColonelBadass: Colonel Muhammad Yousaf, the Pakistani ISI officer in charge of training the Mujahiadeen and overseeing special forces operations in Afghanistan. To note, he was not trained as a spy or an SF operator.
* CrowningMomentofAwesome: For the Pakistan Air Force. It engaged the Soviet aviators on many occasions and won pretty much all encounters.
* FourStarBadass: Many. The Commander of the ISI, General Akhtar Abdul Rehman. Oversaw a plan which caused the defeat of a superpower. Ahmad Shah Masood. Even Abdul Rashid Dostum, one of leading government generals who became a semi-independent warlord in the north of the country after Soviets pulled out.
* FromBadToWorse: The Soviet Union collapsed two years after withdrawing. Afghanistan got the 1990s Civil War, Al Qaeda and the Taliban, the 2001 U.S. invasion still going on in 2014.
* GeneralFailure: Pretty much all of the commanders on the Soviet and Afghan government side.
* NiceJobBreakingItHero: Soviets intervened because the Afghan communists were antagonizing and radicalizing the population through bungled and heavy-handed "reforms." Killing the radical leaders and directly taking over the country made the problem worse.
* PyrrhicVictory: For the Afghans. Yes they had held on to their independence. But, well just see current day headlines to see what was the price. Pakistan had orchestrated the defeat of a superpower, but, at the costs of having millions of refugees coming into the country, heavy radicalization in parts of society, economic slowdown which was not reversed until...2000, just before the sequel.
* [[UsefulNotes/PakistanisWithPanters Pakistanis With Panters]]: Pakistani Special Forces trained most of the rebels and fought in many battles. In the early years any successes the Mujahideen had were usually when there was a large cadre of Pakistani "advisers" with them. The Soviet attacks inside Pakistan led to the Pakistan Air Force being used to defend its airspace and for the most part the Soviets were roughly treated.
* RockBeatsLaser: Uneducated Afghans in sandals and pajamas, armed with Kalashnikovs, [=RPGs=], and a few missiles have no chance of defeating the conquerors, right?
** [[Reality Ensues No, no they didn't.]] The USSR's withdrawl was due to more getting bored and realizing that [[TruthInTelevision Afghanistan is a fucking hopeless shithole.]]
* ShockingDefeatLegacy: Afghanistan still is at war and has seen its society destroyed and two generations and counting have suffered the privations of war. The Soviet Union's collapse was precipitated by this war, it emptied the already bare treasury, the citizens of the non-Russian Republics had disproportionate casualties and that caused resentment [[note]] the heavy use of non-Russian troops was motivated not just for cannon fodder purposes, but for political reasons. Many Southern Soviet Republics had kin in Afghanistan and it was hoped that use of such troops would make it more palatable for the locals. It did not. [[/note]] which contributed to secessionist tendencies. In particular, many Soviet Muslims, who provided disproportionate number of troops who served in Afghanistan (in the hope of offending Afghans less) were themselves radicalized and became involved in unrest within Russia itself. For example, many Chechen rebels, including their first leader, Dzhokhar Dudayev, were veterans of the Afghan War.
* ThemeParkVersion: The War, its factions, the political, social, economic and cultural issues that led to it, the motivations of all participants are so complex that almost all representations of it even in serious works and media have to be this.
* WeAreStrugglingTogether: The Red Army and the Kabul government didn't really trust each other too much.
* YoungFutureFamousPeople: Many, both in real life and in pretty much every major media depiction of it. Most especially Osama Bin Laden (future villain), and Ahmad Shah Massoud (future hero).
** Most of the Taliban Leaders like Mullah Umer earned their spurs here.
** Several Russians who rose to prominence in the 1990s and 2000s fought in the war.
** Pervez Musharraf, future Pakistani President, was a commando at the time.
** Dzhokhar Dudayev, the future Chechen rebel leader, served as a Soviet Air Force pilot in Afghanistan.

!!Examples in media:
[[foldercontrol]]

[[folder:Anime and Manga]]
* Balalaika from ''Manga/BlackLagoon'' served in Afghanistan as an officer with the [=VDV=]. Many of her subordinates served in the war either with the [=VDVs=] or with the Army Spetsnaz.
** There technically ''weren't'' (and still aren't) Army Spetsnaz in [[RedsWithRockets Soviet Army]] in the sense of the U.S. Army Rangers or Green Berets. All Army Special Forces (except VDV's, which are separate service, despite traditionally grouped up with the Army) are subject to GRU[[note]]Main Intelligence Directorate, the chief army command that oversees all Soviet and then Russian military intelligence and special ops.[[/note]] control, and GRU Spetsnaz traditionally masquerades as VDV Recon units.
* Sōsuke from ''LightNovel/FullMetalPanic'' was a rebel child soldier in Afghanistan, despite being ethnically Japanese (ItMakesSenseInContext). Also in the [[AllThereInTheManual back-story]] of the ''Full Metal Panic!'' original novels, the existence of [[HumongousMecha Arm Slaves]] allows the Soviet Union's support of the pro-communist government to succeed.
[[/folder]]

[[folder:Film]]
* ''Film/CharlieWilsonsWar'', based on a book.
* ''Film/RamboIII''. These days it's pretty ironic to see one of the iconic movie series that support a Type 1 EagleLand include a dedication to those brave Afghan rebels (it was slightly altered post 9/11).
* The comedy ''Film/SpiesLikeUs''.
* ''Film/TheLivingDaylights'' is not quite as horribly dated as it seems at first glance. The Mujahiadeen leader Bond hooks up with turns out to be a westernized Oxford alum, and thus very unlikely to be a future supporter of the Taliban.
* ''Afganskiy Izlom'' ("Афганский излом", in English "Afghan Breakdown"), the first Soviet movie made about the war in 1991.
* ''Film/TheBeastOfWar'', a powerful dramatic account of the last hours of a Soviet tank crew.
* ''Literature/TheKiteRunner''
* ''[[Film/NinthCompany The 9th Company]]'', a very successful Russian movie about [[http://en.wikipedia.org/wiki/Battle_for_Hill_3234 the Battle for Hill 3234]].
* ''Film/RedDawn1984'' had one of the main characters (the Russian) get into a discussion with another Russian character about Afghanistan, even saying that he was always on the side of the Afghans in that war. The story as a whole was inspired by the invasion, asking the viewers "What if it happened here?"
[[/folder]]

[[folder:Literature]]
* ''Zinky Boys'' is a series of interviews with Soviet veterans of the Afghan war. The title comes from the sealed zinc coffins casualties were sent home in, to hide the fact that the Soviet "advisors" were actually fighting the war, not just providing training and logistical support as the central government claimed. Well, until the storming of Amin palace in Kabul on December 27, 1979. After that the full-scale deployment began, which was impossible to conceal.
* The Creator/TomClancy novel ''[[Literature/JackRyan The Cardinal of the Kremlin]]'' is partly set in Afghanistan. The mujaheddin are mostly portrayed as righteous but naive, while the {{CIA}} officer in charge of aiding them frequently notes that they're being used (in internal monologue). The Soviets, on the other hand, are portrayed sympathetically as well.
* Soviet veterans of this war figure in ''Literature/RedStormRising'', generally portrayed as knowing a thing or two about hard fighting. One KGB soldier, when asked why [[spoiler:he and his squad mates killed an old farming couple and raped their daughter]], simply replied "Afghanistan".
* Many of the characters in ''Literature/RedArmy'' served in Afghanistan.
* ''Feast of Bones'' is a novel entirely from the Soviet perspective, specifically a VDV reconnaissance company. The main cast are both competent and sympathetic characters, which is all the more surprising considering it was written during the Cold War by a U.S. military man.
* In the 1990s Colonel Lester Grau of the U.S. Army wrote two tactical-level studies on Afghanistan, ''[[http://purl.access.gpo.gov/GPO/LPS51379 The Bear Went Over the Mountain]]'' and ''[[http://purl.access.gpo.gov/GPO/LPS72248 The Other Side of the Mountain]]''. The first examines and analyses Soviet tactics in Afghanistan; the second one does a PerspectiveFlip and studies Mujahideen tactics. Both are required reading for U.S. infantry officers, and both examine why the war turned out the way it did from the ground up.

[[/folder]]

[[folder:Live Action TV]]
* The ''Series/MacGyver'' episode "To Be a Man" has Mac parachute into the country to destroy a crashed spy satellite. KirksRock makes a prominent appearance.
[[/folder]]

[[folder:Music]]
* The Music/PetShopBoys cover of Sterling Void's "It's Alright" adds lyrics addressing this. The song was released as a single in 1989 but the album version came out the previous year.
* Music/ThePolice's song "Bombs Away" is about this. The invasion happened while its parent album ''Zenyattŕ Mondatta'' was being recorded.
* Many Soviet soldiers wrote and sang songs about their experiences during the war. Igor' Morozov's [[https://www.youtube.com/watch?v=wp2jR9_Eefo ''Batal'onnaya Razvedka'']], Yuri Kirsanov's [[https://www.youtube.com/watch?v=ZyD9vzmBrD0 ''Kukushka'']], and Yuri Slatov's [[https://www.youtube.com/watch?v=TJJB6bUYR4I ''Ordena ne Prodayutsya'']] are some of the more well-known ones. The Soviet publishing house Melodiya published a collected record album in 1988 named ''Vremya Viybralo Nas'' containing many of these soldier-bard songs.
[[/folder]]

[[folder:VideoGames]]
* [[Franchise/MetalGear Revolver Ocelot]] served in Afghanistan. And with a nice chunk of ''VideoGame/MetalGearSolidVThePhantomPain'' looking to take place in 1984 Afghanistan, right in the thick of the invasion, we may get some more details on that service.
* ''The Truth About 9th Company''.
* ''[[VideoGame/SyphonFilter Syphon Filter 3]]'' has a few missions set during the invasion, where both Gabe and Lian are carrying out covert operations against the Soviets for the U.S. and Chinese governments, respectively.
* ''VideoGame/WorldInConflict'': Colonel Orlovsky previously served in Afghanistan.
* ''[[VideoGame/GraviteamTactics Graviteam Tactics: Shield of the Prophet]]'' inverts the war by having Iran invade western Afghanistan to assist in the 1979 Herat uprising; Soviet forces intervene to fight the Iranians at the request of the Afghan government.
* ''VideoGame/CallOfDutyBlackOps2'': One of the missions take place during the invasion.
[[/folder]]

----
<<|MilitaryAndWarfareTropes|>>