In 1938, servicemen of the Czechoslovak Army and the State Defense Guard fought in an undeclared border war against the German-backed Sudetendeutsches Freikorps as well as Polish and Hungarian paramilitary forces. As a result of the Munich Agreement, areas heavily populated by ethnic German speaking people were incorporated into the Third Reich and military aged men living there were subject to being drafted into the Wehrmacht. In 1939, after the Slovak State proclaimed it's independence and the remainder of Carpathian Ruthenia was occupied and annexed by Hungary, the German occupation of the Czech Lands followed and the Protectorate of Bohemia and Moravia was proclaimed after the negotiations with Emil Hácha. The Protectorate's government possessed its own armed force, the Government Army (6,500 men), tasked with public security and rearguard duties. On the other side of the conflict, a number of Czechoslovak units and formations served with the Polish Army (Czechoslovak Legion), the French Army, the Royal Air Force, the British Army (the 1st Czechoslovak Armoured Brigade), and the Red Army (I Corps). Four Czech and Slovak-manned RAF squadrons were transferred to Czechoslovak control in late 1945.