Officers responded about 1 a.m. to a report of a resident who attempted to assault another resident with a bat in the 1800 block of Vassar Street, according to the Glendale Police Department.
When police arrived at the building, the unidentified suspect armed himself with a knife, authorities said.
The suspect initially threatened to start a fire, but firefighters left the scene after the possibility of a fire was deemed to no longer be a threat, a police spokesperson told ABC7.
Negotiators were in communication with the suspect after he barricaded himself inside the apartment building.
The suspect was taken into custody shortly after 8:30 a.m., police said.