Militia to Australian Flying Corps As a militia officer, McNamara was mobilised for service in Australia when war was declared in August 1914. In March, McNamara departed Melbourne for Egypt aboard HMAT
Orsova, arriving in
Suez the following month. Completing his course at Upavon, McNamara was posted back to Egypt in August, but was hospitalised on 8 September with
orchitis (an inflammation of the
testes). Discharged on 6 October, he served briefly as a
flying instructor with
No. 22 Squadron RFC, before returning to No. 1 Squadron. On his first
sortie, a
reconnaissance mission over
Sinai, McNamara was unaware that his plane had been hit by
anti-aircraft fire; he returned to base with his engine's oil supply almost exhausted. Flying
B.E.2s and
Martinsydes, he undertook further scouting and bombing missions in the ensuing months. McNamara had successfully dropped three of his shells when the fourth exploded prematurely, badly wounded him in the leg with
shrapnel, an effect he likened to being "hit with a sledgehammer". Allied airmen had been hacked to death by enemy troops in similar situations, and McNamara saw that a company of Turkish cavalry was fast approaching Rutherford's position. Having effected what was described in the
Australian official history of the war as "a brilliant escape in the very nick of time and under hot fire", Drummond, Ellis, and Rutherford all wrote statements on 3–4 April attesting to their comrade's actions, Rutherford declaring that "the risk of Lieut. MacNamara being killed or captured was so great that even had he not been wounded he would have been justified in not attempting my rescue—the fact of his already being wounded makes his action one of outstanding gallantry—his determination and resource and utter disregard of danger throughout the operation was worthy of the highest praise". The first and only VC awarded to an Australian airman in World War I, Promoted to
captain on 10 April 1917, McNamara became a
flight commander in
No. 4 Squadron AFC (also known until 1918 as No. 71 Squadron RFC), but was unable to continue flying due to the leg wound he suffered on 20 March. Found to be medically unfit for active service, McNamara was discharged from the
Australian Flying Corps on 31 January 1918. In September 1918, he was posted as a flying instructor to Point Cook, where he saw out the remainder of the war. ==Between the wars==