Ontario on Thursday pledged $25 million for police and to keep suspects behind bars while they await trial on gun crimes charges, as the Canadian province grapples with rising shootings involving domestically obtained weapons.

For years, the primary source of guns used in Canadian crimes was the United States, with weapons smuggled across the world's longest unprotected border.

That has changed in recent years with licensed gun-owners buying firearms legally and then illegally re-selling them into criminal networks, current and former police officers, Crown prosecutors and gun sellers said.