Canning Vale acting officer-in-charge Senior Sergeant Jeremy Petersen alleged on July 27, the man (37) stole a car and crashed it on Summer Place, Thornlie. Police allege he then brandished a sword at residents who were on the street.
Officers attended and found the man had jumped a brick wall, crossed a back yard then climbed the roof of a Lester Street house.
Sgt Petersen said the man came down to confront them and punched two Canning Vale officers in their faces as they arrested him.
Multiple Taser deployments were unsuccessful, but they eventually subdued the man with pepper spray.
While he was handcuffed he allegedly headbutted a Cannington response team officer.
He appeared at Armadale Magistrates Court on July 28 charged with stealing a motor vehicle, being armed in a way that may cause fear, obstructing police and three counts of assaulting a public officer. He will appear again on August 12.
The officers went to hospital, one with a cut lip, the other a bruised jaw. The response team officer had a bruised head.