A "frustrated" building site worker rammed his bosses' office with a tipper truck because he thought they were picking on him, a court has heard.
James Webber, 25, caused £4,277 damage to a portable building in Pontypridd by driving into it "at speed."
He admitted causing criminal damage and being reckless as to whether life was endangered.
Webber, from Tonypandy, was given a 12-month suspended prison sentence and must do 300 hours unpaid work.
Recorder Geraint Walters, sitting at Merthyr Tydfil Crown Court, also ordered him to pay £1,200 costs.
Prosecutor Owen Williams said: "Webber was given permission to take the vehicle home after work.
"But after driving nine miles home he had a phone call telling him to return it immediately as it was needed by another worker.
"When he arrived back to the company's offices he was told the worker had already left for the day.
"He rammed the tipper backwards into the offices before taking it forward and reversing it at speed for the second time."
Mr Williams said staff working in the two-storey portable building had to dive for cover but no one was injured.
Webber got out of the cab and told a security officer: "You'd better phone the police."
The Ford Transit tipper was also damaged in the incident at the Albion Industrial Estate, Cilfynydd, in Pontypridd.
In mitigation, Marion Lewis said the call back to the site had been the "straw that broke the camel's back".
"Webber had felt alienated, bullied and victimised . . . and co-workers had made similar complaints," she said.
"He felt frustrated and angry that no one was prepared to listen to him and he had a moment of madness that he immediately regretted."