The United Arab Emirates said Monday it pardoned and released a British academic sentenced to life in prison on spying charges, ending a diplomatic dispute with its longtime Western ally while still alleging the researcher spied for MI6.

Matthew Hedges' monthslong detention and sentencing last week came as relations between Britain and its onetime protectorate have been strained since the 2011 Arab Spring, the tension only worsening with the UAE's military campaign in Yemen and its boycott of Qatar. Tens of thousands of British expatriates nevertheless fill lucrative jobs across the sheikhdoms of the UAE and more visit as tourists.

Emirati officials insisted they had developed a strong case against Hedges. At a meeting of journalists hastily convened in Abu Dhabi, the UAE capital, officials showed short video clips of Hedges purportedly acknowledging his intelligence work, NY Times reported.

"He was a part-time PhD researcher, a part-time businessman, but he was a 100-percent a full-time secret service operative," said Jaber al-Lamki, an official with the UAE's National Media Council.

"Mr. Hedges has been found guilty of espionage," al-Lamki added. "He was here to steal the UAE's sensitive national security secrets for his paymasters."

Daniela Tejada, Hedges' wife, told the BBC she couldn't wait to have him back, calling the time since his May 5 arrest at Dubai International Airport "an absolutely nightmarish seven months."

"In my heart, I know that he isn't a spy," she said.

Britain's Foreign Secretary Jeremy Hunt also welcomed the decision on Hedges, tweeting it was "fantastic news." He said Britain did not agree with the charges against Hedges but added that it is "grateful to UAE government for resolving issue speedily."

"We've seen no evidence to support these accusations," Hunt said, adding that the U.K. is "deeply perplexed" by the charges.

Hunt had lobbied senior UAE officials for Hedges' release. The UAE came under mounting international pressure after the academic's life sentence was handed down last week.Daniela Tejada, Hedges' wife, told the BBC she couldn't wait to have him back, calling the time since his May 5 arrest at Dubai International Airport "an absolutely nightmarish seven months."

"In my heart, I know that he isn't a spy," she said.

Britain's Foreign Secretary Jeremy Hunt also welcomed the decision on Hedges, tweeting it was "fantastic news." He said Britain did not agree with the charges against Hedges but added that it is "grateful to UAE government for resolving issue speedily."