A British Muslim convert who told police he wanted to kill Prince Harry was jailed for three years today after pleading guilty to threatening murder, police said.

Ashraf Islam, 31, was told by the judge who sentenced him at Isleworth Crown Court that his plan had been "vague and unlikely to succeed", but he nevertheless posed a danger to the public, according to reports in British media.

Police said Islam, who was born Mark David Townley and changed his name around 2010 after converting to Islam, had entered a police station in west London on May 23, 2013, and said he intended to kill Prince Harry the following day.

Police searched the hotel room, where he had just checked in after flying into London from Thailand, and seized his laptop. They found no weapon. Islam, originally from Belfast in Northern Ireland, had no fixed abode at the time.

Media reported that Islam had said he felt he had a "moral right to judge" Prince Harry, a captain in the British army, because he disagreed with the actions of the military.

Prince Harry, grandson to Queen Elizabeth and fourth in line to the throne, has carried out two tours of duty in Afghanistan, the most recent as an attack helicopter pilot.

Islam's defence lawyer told the court he had a personality disorder, according to media reports.

Islam made the threat on the day after soldier Lee Rigby was murdered in broad daylight by two British Muslim converts on a busy street in southeast London close to an army barracks.

News of the killing and its aftermath dominated British media headlines for days. The killers, Michael Adebolajo and Michael Adebowale, were convicted of murder on Dec. 19 and will be sentenced on Feb. 20.

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.