Officers responded to several reports of a man using a machete to break house windows, according to the Sacramento Police Department.
The reports were being made on Capstan Way, near Seamas Avenue.
Officers found the suspect on the roof of a house nearby, and he was still armed with the machete.
Derek Pastor, 33, was booked for felony vandalism.
Greg Cotta filed this report.