Andy Ruiz Jr. failed to retain his heavyweight championship, losing to Anthony Joshua in their rematch over the weekend. He revealed Monday that his diet may have had something to do with the loss.

Ruiz told TMZ Sports he was having “too much fun” after upsetting Joshua earlier this year and that could have contributed to his unpreparedness in Saturday’s rematch in Saudi Arabia.

AUSTRALIAN BOXER, 27, DIES AFTER FREAK TRAINING ACCIDENT, TEAM SAYS

“I think I ate everything -- everything -- that’s why I gained so much weight,” he told TMZ Sports. “I was having too much fun, I was celebrating too much.”

Andy Ruiz Jr. reacts after losing on points to Britain's Anthony Joshua in their World Heavyweight Championship contest at the Diriyah Arena, Riyadh, Saudi Arabia early Sunday Dec. 8, 2019. (Nick Potts/PA via AP)

Andy Ruiz Jr. reacts after losing on points to Britain's Anthony Joshua in their World Heavyweight Championship contest at the Diriyah Arena, Riyadh, Saudi Arabia early Sunday Dec. 8, 2019. (Nick Potts/PA via AP)

Ruiz said his partying got out of control as well: “Just being with my friends and just celebrating. Drinking a few more Coronas than I should have.”

Joshua reclaimed the WBA, WBO and IBF titles with a unanimous points decision over Ruiz. Two judges gave the fight to Joshua, 119-100, while the other had Joshua winning, 119-109.

UFC'S JORGE MASVIDAL EXPRESSES WILLINGNESS TO FIGHT BOXING CHAMP CANELO ALVAREZ NEXT

Ruiz gained 15 pounds for the fight and weighed in at 283 pounds. He was the second-heaviest boxer to fight for a world heavyweight title. He lamented his conditioning after the fight Saturday.

“I didn’t prepare how I should have,” Ruiz said. “I gained too much weight. I don’t want to give excuses, he won ... If we do a third fight, you best believe I’m going to get in shape. I’ll be in the best shape of my life.”

Britain's Anthony Joshua celebrates after beating Andy Ruiz Jr. on points to win their World Heavyweight Championship contest at the Diriyah Arena, Riyadh, Saudi Arabia early Sunday Dec. 8, 2019. (Nick Potts/PA via AP)

Britain's Anthony Joshua celebrates after beating Andy Ruiz Jr. on points to win their World Heavyweight Championship contest at the Diriyah Arena, Riyadh, Saudi Arabia early Sunday Dec. 8, 2019. (Nick Potts/PA via AP)

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Joshua’s next fight will be against IBF mandatory contender Kubrat Pulev but it’s unclear where the fight will take place.

The Associated Press contributed to this report.