LAS VEGAS — Conor McGregor got his revenge. Now he wants a third fight on his terms.

McGregor evened the score in his rivalry with Nate Diaz by outpointing him Saturday night at UFC 202 in a rematch of their two-round welterweight thriller in March.

The two put on an action-packed fight in which McGregor came out strong and then hung on in a tiring, bloody slugfest. Two of the judges scored it 48-47 for McGregor, and the other had it 47-47.

McGregor immediately challenged Diaz to a third fight – but only if Diaz would come down to the lightweight division.

“Surprise, surprise! The king is back!” McGregor said. “If you want this trilogy, it’s on my terms. I came up to 170, now you’ll come back to 155 and we’ll finish what we’ve started. I knew what I had to do this time around and I did it.”

McGregor (20-3) forced the action in the opening round, landing multiple leg kicks to Diaz’s lead leg and a straight left that knocked down Diaz (20-11).

The Irishman took down Diaz twice more in the second round, bloodying his nose and appearing to have control of the fight.

The persistent Diaz found his footing later in the second, though, unleashing a flurry of strikes and knocking McGregor against the fence. Diaz continued to attack in the third and, for the final 90 seconds of the fourth, they stood in the center of the cage and exchanged blows.

“I came here to fight. I want No. 3, I gave him No. 2, so let’s do it,” Diaz said of a possible third match.