LONDON (AP) -- A British judge imposed a 13-year prison sentence Friday on a man who admitted conspiring to blow up a U.S.-bound plane with explosives hidden in a shoe.
Prosecutors said Saajid Badat had backed out of an alleged plot with Richard Reid, who was subdued by passengers when he attempted to detonate a bomb aboard an American Airlines flight from Paris to Miami on Dec. 22, 2001.
''Turning away from crime in circumstances such as these constitutes a powerful mitigating factor,'' judge Adrian Fulford said. ''It can take considerable courage to plead guilty to offenses of this kind.''
Badat's guilty plea in February was the first major conviction for a terrorist plot in Britain since the Sept. 11, 2001, attacks in the United States.
British convicts are typically eligible for parole after serving two-thirds of their sentence, so Badat could be free in a little over eight years.
Fulford said Badat had been part of a plot to commit a ''wicked and inhuman crime'' that would have killed hundreds of people.
''Sitting in the civilized and muted surroundings of the Old Bailey (courthouse), it is easy to forget exactly what you planned,'' he told Badat.
But the judge said he believed the would-be terrorist had had a genuine change of heart. He said he balanced the need for strong deterrents in terrorism cases with Badat's evident remorse.
Fulford said he hoped the sentence would send a message to others considering terrorism that a decision to turn away from violence would benefit them in court.
Had Badat been convicted at trial without pleading guilty, the judge said, he would have recommended a sentence of at least 50 years.
In letters to his parents written before the bomb plot and read in court Friday, Badat said he was disillusioned with Britain.
He wrote: ''I have a sincere desire to sell my soul to Allah in return for paradise.''
Prosecutors said the letter was found along with explosives at his home.
Prosecutor Richard Horwell said Badat had confessed as soon as he was apprehended in November 2003, telling officers as they drove to the police station: ''I was asked to do a shoe-bombing like Richard Reid.''
He told the police about a green suitcase in his bedroom which contained a fuse and detonator, and another suitcase which contained explosives inside a sock.
He reportedly told officers he didn't know how to dispose of the items, and added: ''An Arab gave me these things in Afghanistan.''
Defense lawyer Michael Mansfield said the tale of how a ''conscientious, hardworking student'' came to consider mass murder ''is a story of our times.''
Badat's Muslim faith ''in one sense took him to the brink, the very brink of disaster, and at the same time it was same faith that pulled him back,'' Mansfield said.
Mansfield said Badat felt deep remorse and wanted to urge anyone else considering terrorist acts to ''have the courage to turn back and save lives.''
Badat, 25, of Gloucester, England, had been accused of conspiring with Reid, who was convicted in the United States, and with a Belgian man to make the explosive device.
Reid was arrested after trying to detonate his bomb aboard the Paris-Miami flight on Dec. 22, 2001. He was sentenced to life in prison after pleading guilty to U.S. charges.
Horwell said before Badat's plea that he had booked a ticket to fly from Manchester, England, to Amsterdam, Netherlands, in preparation for an onward flight to America on which he planned to detonate his bomb.
''But he did not take that flight. We accept by then he had withdrawn from the conspiracy, which by then he had been party to for an appreciable period of time,'' Horwell said.