A man jumped onto a roof on Ottawa Street South Tuesday afternoon after police tried to arrest him. (Roberto D'Olimpio/Facebook)

A Hamilton man had to be coaxed off the roof of an east end apartment Tuesday afternoon after police officers showed up to arrest him, police say.

Around 1:30 p.m., police officers showed up at 172 Ottawa St. S to arrest a man and a woman in their 30s for robbery, police spokesperson Claus Wagner told CBC Hamilton.

"When they knocked on the door he didn't want to get arrested, so he climbed out onto the roof," Wagner said.

The man stayed up on the roof for a little over three hours, Wagner said. Additional officers including a K9 unit and a negotiator were called in to help out.

"When someone doesn't want to give themselves up for an arrest, the staff sergeant has to go down too," Wagner said, adding that this sort of thing doesn't happen "too often anymore."

A portion of Ottawa Street was blocked off for the afternoon but reopened around 5:15 p.m.

A 37-year-old Hamilton man was arrested and charged with failing to comply with an undertaking, as well as robbery, forcible confinement and aggravated assault stemming from a previous incident.

A 33-year-old Hamilton woman was charged with robbery and forcible confinement.

No one was injured.