An Islamic State-obsessed teacher showed beheading videos to children as young as 11 as he plotted attacks on Parliament, the City, shopping centres and the transport network, a court heard today.

Umar Ahmed Haque, 25, is accused of planning to attack civilians at locations including Heathrow airport, and target royal protection officers, police, embassy officials and journalists, it is said.

The court heard he was inspired by the Westminster Bridge attack last March that left five dead and was recorded outlining his plans to a 19-year-old accomplice.

Prosecutor Mark Heywood QC told jurors that Haque was a teacher at the Lantern of Knowledge Islamic School in Leyton between September 2015 and September 2016, and also took classes of youngsters at a mosque in Ripple Road, Barking.

Mr Heywood said: “Umar Haque had determined in 2016 and early 2017 to carry out a violent attack or attacks, with others if he could, in this country.”

He said Haque had tried to indoctrinate his students, aged between 11 and 14, adding: “His methods were to expose them to information and video recordings, of the kind that no one should expose to children, and even have them enact scenarios of violent action against police.”

The Old Bailey heard he played videos showing beheadings, people with guns, and burning passports to classes at the school and the mosque.

Mr Heywood said Haque began plotting after being stripped of his passport in 2016.

He said covert recordings of Haque talking to his alleged accomplice, Abuthather Mamun, 19, show he had “spent a great deal of time planning for terrorist attack”, including praising Westminster killer Khalid Masood and identifying targets.

Mr Heywood said Haque, of Forest Gate, “was fascinated by the warped and extreme ideology of Islamic State. As he later told the police after his arrest, he was their loyal follower.”

Mamun, of Barking, who knew Haque through the mosque, is accused of helping him to raise funds for the plot.

He denies a charge of preparation of terrorist acts. Mohammed Abid, 27, of Manor Park, is accused of failing to tell the authorities after learning of Haque’s plans.

He denies failing to disclose information about acts of terrorism. Nadeem Patel, 26, of Forest Gate, allegedly agreed to help Haque acquire a gun.

He denies conspiracy to possess a firearm with intent to cause fear of violence. He has pleaded guilty to possession of a prohibited weapon.

Haque denies two counts of preparing to commit terrorist acts, one charge of conspiracy to possess a firearm with intent to cause fear of violence, and a count of dissemination of terrorist publications.

He has admitted possessing three copies of a terrorist publication and a second charge of dissemination of terrorist publications. The trial continues.