Portions of West MacArthur Boulevard and surrounding streets had been shut down as police negotiated with him.

The man climbed out of an apartment he had holed up in, and after brief conversation with officers outside, laid himself down and was taken into custody about 2:35 p.m. He was not armed when he surrendered, but officers were planning to search the apartment for a weapon.

He had apparently been involved in an argument with someone earlier and fled to an apartment in the 900 block of West MacArthur, where he was breaking windows, yelling and screaming and acting erratically, police said.

The standoff began about 1:45 p.m.

West MacArthur Boulevard between Market Street and San Pablo Avenue was closed off as were some other streets, including 37th and Linden streets. Some adjacent apartment buildings were evacuated during the standoff.

More than a dozen Oakland officers, as well as officers from the California Highway Patrol and Emeryville were on the scene.