After the 1991–1992 South Ossetia War, a Joint Control Commission was created on the basis of the Dagomys agreement from representatives of four parties: Georgia, South Ossetia, Russia and North Ossetia. From 1993 to 2008, the Mixed Peacekeeping Forces (consisting of three battalions - Russian, Georgian and Ossetian) were deployed in South Ossetia. Before the war of 2008, Georgian peacekeepers who were part of the Joint Staff of the JPKF left its command. After the Russo-Georgian War, the Joint Peacekeeping Force ceased to exist. After the recognition of the Republic of South Ossetia by Russia, it was decided that a permanent Russian military base was needed.