A man who drove a van into Muslim worshippers outside a mosque last June was motivated by deadly terror attacks in Britain and an obsession with a television account of Muslim men who targeted white girls, a London court heard on Monday.
Darren Osborne, 48, also lambasted politicians, calling London Mayor Sadiq Khan a disgrace and Labour Party leader Jeremy Corbyn a "terrorist sympathiser", prosecutor Jonathan Rees said, quoting from a note he said Mr Osborne left in the van.
The note described Muslim men as rapists, "feral" and "in-bred" and when he was detained after the attack, Mr Osborne said: "At least I had a go", Mr Rees told Woolwich Crown Court.
Osborne is accused of murdering Makram Ali, 51, a father of six who came to Britain from Bangladesh aged 10, and the attempted murder of other worshippers as they left a mosque in Finsbury Park in north London after late-night Ramadan prayers.
Osborne has denied the accusations.
[ Western nations plan digital force fields to thwart vehicle terror attacks ]
[ UK hate crimes targeting mosques more than double in a year ]
"The evidence establishes that the defendant was trying to kill as many of the group as possible," Mr Rees told jurors. "The prosecution say that the note and the comments he made after his detention establish that this act of extreme violence was, indeed, an act of terrorism, designed to influence government and intimidate the Muslim community."
The incident occurred just weeks after three Islamists drove a van into pedestrians on London Bridge before going on a knife rampage, killing eight.
That attack came the month after a suicide bombing at a pop concert in Manchester killed 22 people. In March another Islamic State-inspired attacker killed five people by driving a car into passers-by on London's Westminster Bridge and then stabbing to death a police officer in the grounds of parliament.
Mr Rees said Osborne hired a van and drove to London from his home in Cardiff. After a plan to attack an anti-Israel march failed, Osborne drove around seeking alternative targets.
He is accused of ramming the crowd at Finsbury Park as worshippers helped Mr Ali who had earlier become unwell.
The court was told Osborne, who had never previously openly expressed racist opinions, had become obsessed with Muslims in the weeks before the attack after watching a BBC television drama "Three Girls", based on true stories of victims of child sex gangs comprised mainly of British Pakistani men.
Rees said Osborne searched online for material related to the show, some of which was connected to far-right groups and Jayda Fransen, deputy leader of Britain First.
One of Ms Fransen's messages was re-tweeted by US President Donald Trump in November.
Two days before the attack, Mr Osborne told a serving soldier in a pub in Cardiff: "I'm going to kill all the Muslims", the jurors were told.
Mr Rees said Mr Osborne's former partner Sarah Andrews described the father of four as a loner and a functioning alcoholic with an unpredictable temperament who took medication for depression.
"With the benefit of hindsight, she describes him as a ticking time-bomb," the prosecutor said.