Left pic Getty Images for Desert Smash

Justin Bieber attended the 11th annual Desert Smash at La Quinta Resort and Club on March 10 in La Quinta, California, and not only did he perform at the event, but he played in a few matches. Talk about a good sport!

The Biebs posed with Kevin Hart, tennis star Eugenie Bouchard and Will Ferrell, the latter of whom co-founded the event over a decade ago to benefit the Cancer for College charity. Other celebrities in attendance included Lance Bass, Kevin Hart, Jesse Metcalfe, Cara Santana, Billy Bush and RedFoo, and pros included Novak Djokovic and and Caroline Wozniacki, both of whom are ranked as the top players in the world.

Bieber posed for photos on the red carpet, played a match and then took the stage to perform, so naturally, he had a few outfit changes. But his best accessory was definitely his hair! The 21-year-old pop superstar posted a selfie on Instagram and wrote, "Hello old bieber hair I got it back lol." We're not sure if that's a good thing, but we're loving his guns ... and the fact that he did all of this for a good cause!

Getty Images for Desert Smash