Police used tear gas to get into the man's home and took him into custody, Carrboro officials said.
Stay on top of breaking news stories with the ABC11 News App
The standoff started at 4 p.m. Wednesday at a home on Laurel Avenue.
Police said an armed man had locked himself inside his home.
When officers got there, they set up a command post and began evacuating neighboring homes.
The residents who were forced to leave their homes were set up with a hotel room, police said.