Ottawa police used a Taser on a man who wouldn't leave a burning building in Centretown early Friday morning.

The call about the fire at 263 Somerset St. W. came at about 4:30 a.m.

It was under control as of 5 a.m., police said.

Officers shocked a 26-year-old man because he refused to leave his home.

"We had to act. It was tough," said spokesperson Const. Chuck Benoit, adding that it was an unusual situation.

The man was taken to hospital to be treated in a psychiatric unit, police said.

Somerset Street West was closed from O'Connor to Metcalfe streets.