A nearly four-hour standoff with a suicidal man armed with knives ended peacefully Monday evening in Westbrook, police said.

Officers responded to the report of a suicidal male at a home on Bridgton Road around 2:45 p.m., Capt. Steven Goldberg of the Westbrook Police Department said in a statement.

The person who contacted police warned officers that the man inside the home was armed with several knives.

“The male would not leave the residence. Officers negotiated with the subject for quite some time,” Goldberg wrote.

Goldberg said the man finally surrendered peacefully around 6:40 p.m. No injuries were reported and the man was taken to Maine Medical Center in Portland for an evaluation.

Westbrook police did not say whether the man would be charged.