The wife of a British academic sentenced to life in prison for espionage in the United Arab Emirates condemned the U.K. government on Thursday for putting diplomatic relations ahead of an innocent man's freedom.

Daniela Tejada says Foreign Office officials bungled the case of her husband, 31-year-old Ph.D. student Matthew Hedges, who was arrested May 5 at Dubai Airport after a research trip to the UAE. She told the BBC the government failed to robustly intervene on Hedges' behalf during the early stages of his imprisonment, when he was held in solitary confinement under inhumane conditions.

"I was under the impression they were putting their interests with the UAE above a British citizen's rightful freedom and his welfare," Tejada said. "They were stepping on eggshells instead of taking a firm stance."

The verdict, announced Wednesday after a five-minute hearing, caught the British government off guard. Foreign Secretary Jeremy Hunt issued a statement saying he had discussed the case with Abu Dhabi Crown Prince Mohammed bin Zayed during a visit to the country last week and the verdict "runs contrary to earlier assurances."

Hunt said he was "deeply shocked" by the verdict, which "is not what we expect from a friend and trusted partner of the United Kingdom."

Tensions over Hedges' treatment have quickly escalated into a crisis, in part because ties between Britain and the seven emirates of the UAE are considered close and date back 200 years.

The UAE is strategically located on the east coast of the Arabian Peninsula, and the British military trains with UAE troops. The emirates of Abu Dhabi and Dubai are home to large numbers of British nationals who work in areas ranging from finance to sports, and thousands of tourists visit the country each year, attracted by sunny beaches, luxury hotels and theme parks.

Ties also include lucrative defense contracts. U.K. companies have a backlog of orders with the UAE worth more than $261 million over the coming decade, according to data from IHS Markit. More importantly, the UAE plans to award another $20 billion of arms contracts over the coming decade — a significant source of potential revenue for Britain, which is set to leave the European Union next year and is seeking to expand trade elsewhere.

Hedges traveled to the UAE to conduct interviews as part of his research into civil-military relations after the Arab Spring. There was "nothing clandestine or covert" in anything he was doing, according to Clive Jones, his Ph.D. supervisor.

The Muslim nation prides itself on being tolerant of foreigners. But British nationals often run afoul of local customs and laws, which prohibit public intoxication, kissing in public and cursing. Most of the time, the violators are deported.

The government takes political criticism much more seriously.

The UAE's vast surveillance network has been used to go after critics, journalists and activists conducting research in sensitive areas. Human rights organizations have been barred from the country after researching the conditions of migrant laborers who do the back-breaking construction work behind the glittering high-rise towers and sprawling shopping malls.

Andreas Krieg, a military and security expert at King's College London, said the UAE sees any information that isn't state controlled as a threat to the regime.

The Hedges sentence was meant to send a message to journalists, rights advocates and academics to take the government line or face the consequences, Krieg said.

"They see civil society as a threat to security," he said, adding that the idea runs contrary to the well-oiled publicity machine that sells the UAE as an attractive investment and tourist attraction. "This is going to be a stain for years and years unless they release him."