UK police foil terrorist plot to kill UK Prime Minister Theresa May

UK Prime Minister Theresa May has been revealed as the target of a foiled major terror plot.

The attackers' plan was to detonate a bomb outside No10 Downing Street before breaking in armed with knives, pepper spray and a suicide vest to kill Ms May.

The two men were arrested in London and Birmingham on November 28 and appeared in court on Wednesday (NZ time).

Explosives were found in the raids but weren't ready to be detonated.

Naa'imur Rahman, 20, is charged with preparing acts of terrorism, he was to detonate the bomb and kill Ms May.

He appeared alongside 21-year-old Mohammed Imran who accused of trying to join the so-called Islamic State.

Ms May was briefed about the planned attack by the head of MI5.

The pair's next appearance will be at the Old Bailey court on December 20.

On the same day, another terror suspect will also appear, Husnain Rashid, who allegedly urged extremists to attack Prince George and even shared the address of his school.

Security services say they've foiled nine terror attacks like this in the UK in the last year.

But there have been five successful attacks - killing more than 30 people.