Kazakhstan weightlifter has celebration of the Olympics after winning gold — but his victory didn't come without controversy

Kazakhstan's Nijat Rahimov shattered a 15-year-old world record in the 77-kilogram weightlifting class on Wednesday, upsetting the favorite, Lyu Xiaojun of China, and taking the Olympic gold medal in the event.

After Rahimov's victory, his coach rushed him on the mat and the two began a goofy celebration, parading around the floor and alternately jumping, hugging, and dancing. It was among the best celebrations we've seen in the Rio Olympics.

Here it is:

But as good as Rahimov's celebration was, his gold medal did not come without controversy. As The Guardian reports, the sport of weightlifting is in the midst of a doping crisis.

Rahimov, who was born in Azerbaijan but competes for Kazakhstan, was barred in 2013 for two years after he, along with 17 other Azerbaijani weightlifters, tested positive for doping while competing. Kazakhstan's entire weightlifting team was nearly barred from competing in Rio because of failures in retested doping samples from both 2008 and 2012. The country is expected to lose five weightlifting gold medals.

And so when Rahimov, who was not expected to win gold Wednesday, not only won the event but also set a world record, many eyebrows were raised.

China's Lyu began to celebrate after he successfully completed his final clean and jerk, at 202 kilograms, ripping his singlet off and thinking he had defended his 2012 gold medal.

But then it was Rahimov's turn, and he moved up to 214 kilograms and successfully completed the clean and jerk. This left both Rahimov and Xiaojun with a total of 349 kilograms, or about 770 pounds, lifted over the two phases of competition, but Rahimov edged Xiaojun in the tiebreaker because he weighed less.

After the event, Egyptian weightlifter Mohamed Mahmoud, who won the bronze medal, seemed to question Rahimov's victory.

"Maybe after some doping controls, some things will change," Mahmoud said.