Russia–South Ossetia relations the federal laws, as President of the Russian Federation it is my duty to protect the lives and dignity of Russian citizens wherever they may be." After five days of fighting, on 12 August French President Nicolas Sarkozy brokered a ceasefire agreement. Under the terms of the agreement, Russia agreed to withdraw from "security zones" in Georgia proper by 10 October. Russia completed the withdrawal on 8 October 2008. On 21 August 2008, the same day as a similar event in Abkhazia, a rally was held in Tskhinval at which the people of South Ossetia appealed to Russian President Dmitry
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