The body of Sergeant Luke Taylor, 33, of the Royal Marines has arrived at RAF Brize Norton in Oxfordshire.
Sergeant Taylor was killed on Monday at the entrance to the UK headquarters in Helmand Province along with Lance Corporal Michael Foley, 25.
He leaves behind his wife Nicola and their son Roan.
It is understood that Sgt Taylor worked in intelligence and had arrived in Afghanistan only four weeks before his death.
He has been described by colleagues as "a natural leader with inspirational flair who was devoted to his family"
Mourners lined the streets of Carterton to salute the bodies of three British servicemen killed in Afghanistan.
Two British servicemen shot dead by an Afghan soldier have been named by the Ministry of Defence.