A man who tried to steal a bike in the Kensington Market area was sent to hospital instead after a confrontation with the owner, police say.

A 36-year-old man tried to steal a bicycle on Dundas St. W., near Bathurst St. at around 2:30 a.m. Thursday, and pulled out a knife when the bike’s owner confronted him, police said.

The bike owner defended himself with a knife sharpening rod, injuring the attacker, Toronto police said.

The suspect was sent to hospital with minor injuries and is in police custody. The bike owner sustained minor hand injuries.

The suspect faces charges of attempted theft, assault with a weapon and threatening death, police said.

He will appear in court at Old City Hall on Thursday morning.