1991–1992 South Ossetia War place around the city in the nearby villages and along the road to North Ossetia. In spring 1992 the fighting escalated again, with sporadic Russian involvement. However, in March 1992, Gamsakhurdia was ousted and replaced by Eduard Shevardnadze. Soon after, Gamsakhurdia loyalists staged an armed rebellion. Furthermore, the conflict with Georgia's other, bigger, separatist region Abkhazia, escalated into a war in 1992. As a result, Shevardnadze had an interest in ending the conflict in South Ossetia and signed the Russian-brokered Sochi agreement. The ceasefire agreement left South Ossetia divided into areas controlled by Georgia and areas controlled by the unrecognised
Russia–South Ossetia relations travelled to South Ossetia on 21 July 2009, where they attended the opening of two rural police stations, and attended the signing of an interagency agreement between the two countries prosecutorial agencies. On 7 August 2009, Dmitry Medvedev in an interview for the documentary "In August 2008..." stated that Russia would continue to develop bilateral ties with South Ossetia "regardless of whether somebody likes it or not." The Treaty of Friendship, Cooperation and Mutual Assistance which was signed in September 2008 came into force on 20 January 2009, and stipulates a Russian guarantee of military intervention in case South Ossetia