Windsor police Staff Sgt. Dave Kigar said the incident happened at 9:45 a.m., when the 21-year-old victim was walking home from the county jail.
Just a few blocks from the jail, the victim was accosted on Brock Street by two suspects, including one that was armed with a baseball bat.
The victim suffered a possible leg fracture in the attack and is now in hospital.
Kigar said police have canvassed the neighbourhood, but have yet to speak to anyone who witnessed the attack.
The victim said he does not know who attacked him.