Britain faced threats from Libya of dire consequences if the ailing Lockerbie bomber died in a Scottish prison, confidential US cables released by WikiLeaks on Wednesday showed.
Threats included the cessation of all British commercial activity in Libya and demonstrations against British facilities, as well as suggestions Britons in the country could be put at risk, according to the cables.
And despite London's attempts to publicly distance itself from the decision to release Abdelbaset Ali Mohmet al-Megrahi -- which was made by the devolved Scottish government -- the cables show enormous British relief at the move.
Libyan officials warned their British counterparts that "consequences for the U.K.-Libya bilateral relationship would be dire were al-Megrahi to die in Scottish prison," read one dispatch from the US ambassador to Tripoli in January 2009.
And if Washington publicly opposed the release, "the U.S. Embassy and private Americans in Libya could face similar consequences," read the cable from the ambassador, Gene A. Cretz.
Megrahi was the only person ever convicted over the 1988 bombing of a Pan Am jumbo jet over Lockerbie, Scotland, which killed 270 people, most of them US nationals.
He was released in August, 2009, on compassionate grounds after doctors diagnosed him with prostate cancer and gave him just three months to live, sparking outrage in the United States.
More than a year later he remains alive in Tripoli, however, renewing anger in the US.
One cable showed Britain's then justice minister, Jack Straw, told US diplomats that although Megrahi might have up to five years to live, the Scottish government appeared inclined to release him.
"Megrahi could have as long as five years to live," said the correspondence, cited in Britain's Guardian newspaper.
It went on: "The average life expectancy of someone of his age with his condition is 18 months to two years. Doctors are not sure where he is on the time scale."
The British government "believes that the Scottish may be inclined to grant the request, when it comes, based on conversations between [Scottish leader] Alex Salmond and UK justice secretary Jack Straw," said the cable.
The dispatches -- from a trove of some 250,000 US cables given to whistleblower website WikiLeaks and now slowly being released -- also showed the British ambassador in Tripoli "expressed relief" about Megrahi's imminent release.
"They could have cut us off at the knees, just like the Swiss," the ambassador Vincent Fean is cited as saying, in reference to a dispute between Libya and Switzerland prompted by the arrest of Libyan leader Moamer Kadhafi's son.
Alex Salmond claimed Scotland was offered a "parade of treats" by Libya, which were all turned down, according to the cables.
The correspondence also showed that Scotland was unprepared for the fierce reaction from the United States, with Salmond declaring himself "shocked".
"The Scottish Government severely underestimated the both [US government] and UK public reaction to its decision to grant compassionate release," said one cable from Louis Susman, US ambassador to Britain, several days after Megrahi was freed.