The Mounties were called Saturday night to a home in Kamloops, where a man reported that four or five men wearing black ski masks were attempting to kick down his front door.
Police say the man sprayed the would-be assailants with bear spray through a broken window, prompting them to flee on foot.
A police dog team wasn't able to locate the suspects, but officers didn't go away empty handed.
While at the scene, the RCMP officers discovered the resident of the home had outstanding warrants for uttering threats, assault and possession of a firearm.
He was arrested and is expected to remain in custody until a court appearance on Monday.