UFC fighter Conor McGregor has pleaded guilty to disorderly conduct in a deal with prosecutors to avoid jail time.

McGregor had faced multiple criminal charges stemming from an altercation in April with other fighters.

As part of his deal he is required to undergo anger management treatment. The plea will not affect his US work visa.

In a statement outside the New York City courthouse, the 30-year-old thanked the judge and prosecutors “for allowing me to move forward”.

He will also be required to fulfil five days of community service, and in exchange, will be cleared of criminal charges.

McGregor had been facing 12 criminal charges related to the incident at Brooklyn’s Barclays Center on 5 April.

In April, McGregor was caught on video throwing a metal dolly into the window of a bus stationed inside the Barclays Center loading dock. The bus was carrying a group of UFC athletes and employees.

Two UFC fighters — Chiesa, a lightweight, and Borg, a flyweight — reported suffering minor injuries to authorities and were ultimately pulled from their respective bouts on a scheduled pay-per-view event on April 7.