Ontario Provincial Police say a tense situation in Petawawa, Ont., ended peacefully when a 44-year-old male surrendered on Saturday after a standoff that lasted more than 36 hours.

The male surrendered just before 12:30 p.m. and was sent to hospital.

During the standoff that began Thursday night, the man was believed to have been armed with a gun, alone in a home on Labine Crescent.

His identity has not been released and it is unknown whether he has any connection to the nearby Canadian Forces base.

The Petawawa Garrison employs many residents in the Ottawa Valley town.

The military has not commented on the situation and police say that they “can’t specify his occupation.”

An emergency response team and a tactical unit joined the OPP in surrounding the home and putting the entire residential neighbourhood under lockdown from Thursday night until Saturday.

Throughout the standoff, police said the public was not in danger and that the man was not thought to have explosives. However, neighbours were told to either stay hidden in their homes with their doors locked, or leave the area while police dealt with the situation.

The OPP said the investigation into the incident is ongoing, and it is too early to say whether or not charges will be laid.