The suspension of Khabib Nurmagomedov can be reduced to six months if he records an anti-bullying public service announcement. (Kathy Willens/Associated Press)

UFC lightweight champion Khabib Nurmagomedov has been suspended nine months and Conor McGregor six months by the Nevada State Athletic Commission for their roles in a UFC 229 brawl that occurred after Nurmagomedov’s victory over McGregor last fall.

Both suspensions are retroactive to the Oct. 6 fight at T-Mobile Arena in Las Vegas, which spiraled into a full-out fracas when Nurmagomedov followed his submission win over McGregor by jumping out of the octagon to fight one of the Irishman’s coaches. In addition, Nurmagomedov was fined $500,000, and McGregor $50,000 for attempting to follow Nurmagomedov out of the cage before engaging in a physical altercation with two of Nurmagomedov’s teammates. Both had reached deals with the state before Tuesday and those were approved by the NSAC.

Nurmagomedov, who earned $2 million for the lightweight title fight, is eligible to return to the cage July 6 but can knock three months off the suspension by participating in an anti-bullying public service announcement produced by UFC and the Las Vegas Metro Police Department and approved by the NSAC. McGregor’s suspension will end on April 6.

Abubakar Nurmagomedov and Zubaira Tukhugov, who went after McGregor in the brawl that left UFC President Dana White disgusted and McGregor asking for a rematch, were suspended one year and fined $25,000.

The bad blood between Nurmagomedov and McGregor extends at least as far back as April, when McGregor attacked a bus containing Nurmagomedov and several other fighters in a backstage area of Barclays Center in Brooklyn a few days before UFC 223. McGregor eventually pleaded no contest to a count of disorderly conduct after that incident and was sentenced to community service.

The run-up to their UFC 229 fight was peppered with ugly insults, including McGregor accusing Nurmagomedov’s manager of being a terrorist.

Read more from The Post:

Conor McGregor accused Khabib Nurmagomedov’s manager of being a ‘terrorist’

‘I’m coming for that man’s head’: Conor McGregor says he’ll crush Khabib Nurmagomedov

Conor McGregor, out on bail after rampage, and UFC face the future

Conor McGregor pleads guilty to disorderly conduct in deal that may speed his return to the UFC