A 21-year-old man accused of bashing cars and damaging other property during anti-Trump protests in November pleaded guilty on Friday.

In a deal with prosecutors, Mateen Shaheed pleaded guilty to five counts of first and second-degree criminal mischief. They carry a maximum sentence of five years in prison but prosecutors agreed to ask for no more than 18 months.

Shaheed, wearing a white shirt and dark tie, appeared to listen attentively to Judge Eric Bloch as he read key points in the plea agreement, responding "yes, sir," when the judge asked him a question. He was originally facing eight counts of first and second-degree criminal mischief.

Shaheed was arrested Nov. 15, five days after the protest. He was captured on video running away from a long line of freshly smashed cars with a baseball bat at a Toyota dealership in Northeast Portland. He was also seen repeatedly striking a utility box, causing dramatic sprays of sparks to fly, and lighting on fire paper in a Portland Tribune newspaper box.

The five counts include damaging property belonging to the city of Portland, TriMet and a private citizen.

At least 120 people were arrested in the first two weeks of anti-Trump protests in Portland. Shaheed was among about a handful that police said were responsible for "wanton destruction."

In a hearing in November, prosecutor Ryan Lufkin described two past instances in which Shaheed damaged cars and attacked his girlfriend. Prosecutors did not pursue the case for unknown reasons.

His girlfriend was due to have their baby in April.

Shaheed's attorney, Jennifer List, and Lufkin both declined to comment.

Prosecutors have reserved the right to ask for more prison time, Bloch said, if Shaheed gets into trouble while awaiting sentencing. So far, Shaheed has maintained himself well, Bloch said.

"You've engaged in positive acts," Bloch said. "It's important for your future and your well-being that you continue along those lines."

Shaheed nodded in response.

The sentencing hearing was scheduled for Aug. 16.

-- Lynne Terry