When forces that are hostile to socialism try to turn the development of some socialist country towards capitalism, it becomes not only a problem of the country concerned, but a common problem and concern of all socialist countries.
This doctrine was announced to retroactively justify the Soviet invasion of Czechoslovakia in August 1968 that ended the Prague Spring, along with earlier Soviet military interventions, such as the invasion of Hungary in 1956. These interventions were meant to put an end to liberalization efforts and uprisings that had the potential to compromise Soviet hegemony inside the Eastern bloc, which was considered by the Soviets to be an essential defensive and strategic buffer in case hostilities with NATO were to break out.
In practice, the policy meant that limited independence of the satellite states' communist parties was allowed. However, no country would be allowed to compromise the cohesiveness of the Eastern bloc in any way. That is, no country could leave the Warsaw Pact or disturb a ruling communist party's monopoly on power. Implicit in this doctrine was that the leadership of the Soviet Union reserved, for itself, the right to define "socialism" and "capitalism". Following the announcement of the Brezhnev Doctrine, numerous treaties were signed between the Soviet Union and its satellite states to reassert these points and to further ensure inter-state cooperation. The principles of the doctrine were so broad that the Soviets even used it to justify their military intervention in the non-Warsaw Pact nation of Afghanistan in 1979. The Brezhnev Doctrine stayed in effect until it was finally ended with the Soviet non-invasion of Poland during the 1980–1981 crisis, and the later unwillingness of Mikhail Gorbachev to use military force when Poland held free elections in 1989 and Solidarity defeated the Communist Party. It was superseded by the facetiously named Sinatra Doctrine in 1989, alluding to the Frank Sinatra song "My Way".