The squadron was formed as the 335th Royal Hellenic Pursuit Squadron (335 Βασιλική Ελληνική Μοίρα Διώξεως, 335 Β.Ε.Μ.Δ.), designated within the British Royal Air Force as No 335 (Greek) Squadron, on 10 October 1941 at Aqir airfield in Palestine. Its first commander was Squadron Leader Xenophon Varvaressos, and the personnel was provided from a core of Greek pilots who were undergoing training in Iraq, augmented by others who had fled from Greece. Initially it was equipped with Hurricane Mk I aircraft, and employed while training in defensive duties until January 1942. Subsequently, the squadron was transferred to El Daba in Egypt, where it was declared as fully operational on 12 February 1942. The squadron began operations over the Western Desert, where it operated continuously until late 1942, participating in convoy protection, bomber escort and ground attack roles. Between June and September 1942, it was re-equipped with Hurricane IIBs. Under Squadron Leader Ioannis Kellas, the squadron participated in the air operations of the Second Battle of El Alamein; on 28 October 1942, the second anniversary of the Italian invasion of Greece, the squadron organized a strafing attack on the Italian XX Corps headquarters, an operation that was a huge morale booster for the expatriate Greeks.