North Yorkshire Police had closed off Scalby Road between Manor Road roundabout and the Crown Tavern roundabout.
Police negotiators and armed police were at the scene at a block of flats, Nathan Court, on Scalby Road.
People were urged to stay away from the area while officers dealt with the incident.
Most Popular
-
1
COURT: Scarborough brothers threw man around 'like a rag doll' during vicious street attacks
-
2
Scarborough seaweed farm SeaGrown win Government contract to help increase renewable energy
-
3
Vandalised Scarborough allotments to be restored as council approves plans to help tackle hundreds stuck on waiting lists
-
4
Firefighters respond to Whitby railway blaze and arson in Scarborough
-
5
Police issue appeal to find missing Bridlington man Cameron
Police tweeted: "The incident - involving a vulnerable man in a nearby property - has been brought to a safe conclusion.
"He has been taken to hospital for treatment. As always, thank you for your patience and support!"
As wellas police, North Yorkshire Fire Service and Northern Gas Network were on hand at the scene.
Nathan Court is a flats development on Scalby Road near its junction with Harley Street, and opposite the junction with Stepney Avenue.