Since the late 1970s, Afghanistan's history has been dominated by extensive warfare, including coups, invasions, insurgencies, and civil wars. The conflict began in 1978 when a communist revolution established a socialist state, and subsequent infighting prompted the Soviet Union to invade Afghanistan in 1979.