Russia–South Ossetia relations the Kremlin, which would see Russian Border Guards patrolling and securing the South Ossetian borders, until such time as the South Ossetian government had set up its own service. President Medvedev made a working visit to Tskhinval on 13 July 2009, becoming the first Russian leader to visit South Ossetia. The visit, which was criticised by Georgia, saw Medvedev confirming that Russia would increase contacts with South Ossetia and would implement numerous projects to assist in the rebuilding effort in the Republic. Following Medvedev's visit, Prosecutor General Yury Chaika, Emergencies Minister Sergey Shoygu and Minister of Internal Affairs Rashid Nurgaliyev
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