The United Arab Emirates on Monday pardoned a British academic jailed for life on spying charges, granting his family's request for clemency minutes after showing a video of him purportedly confessing to being a member of UK intelligence agency MI6.

The UAE president issued the pardon as part of a mass clemency of more than 700 prisoners to mark the country's National Day, according to a statement carried by state news agency WAM. 

Hedges and his wife Daniela Tejada. Photo: ReutersHedges and his wife Daniela Tejada. Photo: Reuters

The pardon was effective immediately and Matthew Hedges, a 31-year-old doctoral student at Durham University held for more than six months, will be allowed to leave the country "once formalities are completed," the statement said.

Britain's foreign minister welcomed the move, saying the UK government had not agreed with the charges against Hedges but was grateful to the UAE for resolving the issue speedily.

The UAE had signalled on Friday that it was working on an "amicable solution" to the issue after London described the sentencing days prior as deeply disappointing.

Hedges has been held since May 5, when he was arrested at Dubai International Airport after a two-week research visit.

Watch: 'We can't give up on Matt'

Minutes before the pardon was announced, a government spokesman showed journalists a video of Hedges purporting to confess to being a member of MI6 researching which military systems the UAE was buying.

In the video, Hedges said he had approached sources as a doctoral student as a cover.

His family and university have cast Hedges as a talented researcher who fell foul of the UAE's security and justice system. The UAE cast him as a British spy who was given a fair trial for grave espionage offences.

"The family and I welcome the news of the presidential pardon and cannot wait to have Matt back home," Hedges' wife Daniela Tejada said after the pardon.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.