A Toronto-area driver had to pull over and compose himself after a near collision that was captured on his dashboard camera Tuesday.

It happened just after 2 p.m. at the intersection of Major Mackenzie Drive and Bayview Avenue, just north of Toronto.

After stopping at a red light, driver Mark Corrigan gets a green and begins to drive eastbound through the intersection on Major Mackenzie.

He's almost through the intersection when another driver — travelling in a silver four-door vehicle along Bayview Avenue — goes through a red light and passes inches in front of Corrigan's bumper, nearly causing a dangerous T-bone collision.

Mark Corrigan slammed his brakes in time to avoid a collision with another vehicle Tuesday afternoon. The harrowing incident was captured on his dashcam. ​"Four or five seconds after my light had gone green, I saw a car whizzing through and I caught it out of the corner of my eye," Corrigan told CBC News. "I slammed on the brakes, stopped in time and managed to avoid an accident.