For the intelligence and security officials charged with the task of keeping Britain safe from terror attacks, it was simply a question of time before a lone fanatic brought carnage to the nation's streets.
Politicians, the police and intelligence chiefs have been warning for months that Britain faced the imminent threat of attack following the recent wave of atrocities committed in European capitals such as Paris, Brussels, Berlin and Istanbul.
And, with Islamist terror groups such as al-Qaeda and Isis (Islamic State) showing no sign of abandoning their commitment to attacking the West, Britain's security forces have been in a state of high readiness in anticipation of such an attack.
Compared with other European cities, London has, until yesterday, escaped relatively unscathed from the growing menace posed by Islamist fanatics.
Indeed, it is down to the constant vigilance of the security services that Britain has not suffered another attack on the scale of the July 7 bombings in London in 2005, in which 52 people died and more than 700 were injured.
At the time British security officials admitted they were struggling to get on top of the growing threat posed by Islamist militants. But lessons were learned as a result of the attacks, so that in recent years a number of high-profile terror plots have been foiled and the perpetrators brought to justice.
One of the more audacious attempts concerned blowing up a number of aircraft flying from Heathrow to the US in 2006.
Consequently, British-based Islamist fanatics have been forced to resort to carrying out lone wolf attacks, such as the murder of Fusilier Lee Rigby in Woolwich in 2013, who was hacked to death by machete-wielding Islamists.
Latest intelligence assessments suggested this was the most likely form of attack that Britain would suffer, and it was because the police and other security forces were able to respond so quickly to yesterday's attack in Westminster that the casualty toll was kept to a minimum.
Of course, there will be the inevitable inquiries into how the attack was allowed to happen, with the police and security services examining whether those responsible for this attack could have been apprehended in advance.
But, as yesterday's attack demonstrates, perpetrating acts of terror does not rely on a great amount of sophistication. All it requires is a lone fanatic determined to pursue a vile creed for innocent civilians to lose their lives.