Police were called to Manse Street, just off Leeds Road, after 11am on Thursday, after independent Bradford councillor Ibrar Ali was stabbed.
The alleged attacker, a 32-year-old man, fled to the roof of a nearby property before being brought down after a stand-off with police.
He was then arrested on suspicion of attempted murder and remains in custody, West Yorkshire Police said.
In a statement, fellow Councillor Riaz Ahmed (Bradford Moor, Lib Dems) confirmed to The Yorkshire Post it was Coun Ali who had been attacked, adding he was “deeply concerned” by the incident.
It is understood Coun Ali had been out door knocking at the time.
These are the first pictures from the scene taken on Thursday by SWNS:

1. Scenes in Bradford where a councillor was stabbed
Scene on Thornbury Avenue, Bradford, where a councillor was stabbed Photo: Charley Atkins / SWNS

2. Scenes in Bradford where a councillor was stabbed
Scene on Thornbury Avenue, Bradford, where a councillor was stabbed Photo: Charley Atkins / SWNS

3. Scenes in Bradford where a councillor was stabbed
Scene on Thornbury Avenue, Bradford, where a councillor was stabbed Photo: Charley Atkins / SWNS

4. Scenes in Bradford where a councillor was stabbed
Scene on Thornbury Avenue, Bradford, where a councillor was stabbed Photo: Charley Atkins / SWNS