 When the Berlin Airlift ended, the entire 317th Group, including the 40th Squadron, was inactivated at RAF Celle on 14 September 1949.The squadron was reactivated on 14 July 1952 as the 40th Troop Carrier Squadron, Medium at Rhein-Main Air Base, Germany.After its reactivation, the 40th joined its reactivated sister squadrons, the 39th and 41st, under control of the 317th Troop Carrier Wing supporting the North Atlantic Treaty Organization while flying the Fairchild C-119 Flying Boxcar.