An alleged terrorist claimed in a police interview he had visited the surgery of Finchley and Golders Green MP Mike Freer, before killing Sir David Amess.
The 26-year-old is currently on trial at the Old Bailey, accused of his “cold and calculated murder”.
He denies the charge, and further denies preparing acts of terrorism.
On the day of the attack, Ali allegedly waved a bloody 12-inch long knife before being apprehended by two unarmed police officers.
Jurors at the Old Bailey watched videos of Ali’s police interviews today - March 25 - in which he said he did not choose to target Plaistow-born Sir David because he was a Conservative, but because of a vote on air strikes on Syria in 2015.
“It wasn’t just him," he said, adding: "I went to Mike Freer’s surgery in Finchley."
Fellow Conservative Mr Freer - a former leader of Barnet Council - was first elected as an MP for Finchley and Golders Green at the 2010 general election.
The 26-year-old also looked at pictures of Michael Gove’s house in west London, saying he would “probably be the easiest one to get to”.
In the police interview, Ali said: “The reason why I started going to parliament in the end was because he (Mr Gove) broke up with his wife so (the) house got sold, he found a new place, and that felt like the closing of a door.”
Ali told police he had bought a knife five years before and kept it in his bag throughout that summer.
In an initial urgent interview, Ali confirmed it was a “terror attack”, saying: “I mean, I guess yeah, I killed an MP. I done it, so yeah.”
The suspect told police no-one else was involved or knew what he was planning.
He said officers would find a plan to attack Mr Gove - which he "never followed through with" - on his electronic devices.
Ali denies murder and preparation for terrorist acts.
The trial continues.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here