The win was Mason's second gold at the X Games after the American rider won Speed & Style in Los Angeles in 2012, and was all the more impressive as it came on a rented bike that he had only had two practice sessions to get used to.
Mason’s path to the final first brought him up against local rider Jose Miralles, who prematurely celebrated a first-round victory after a glitch in the timing system gave the Spaniard the win, despite Mason having crossed the line some 11 seconds ahead.
Mason next saw off Norwegian Andre Villa in the semis, stringing together his most impressive run of the night to score 90.39 including the four-second speed advantage that is converted into points and added to the riders’ style score.
Then in the final, Mason and Rebeaud set off into a hotly-fought on-track battle, although Mason was clearly the stronger rider on the night through the freestyle section of the course.
In the end, he didn’t even need the 3.48 second speed bonus that took his tally to 88.46, with Rebeaud scoring 80.33 to net silver and give Mason the gold.
The biggest upset of the night came when Lance Coury, the shock gold medallist in Speed & Style from X Games Foz do Iguacu last month, crashed out trying to execute a Whipflip during his first-round duel with Rebeaud.
Coury landed the trick sideways and slid down the ramp, landing in a heap at the bottom of the dirt mound. He took his time getting up and looked winded, but still managed to climb to the top of the ramp and give the enthusiastic Spanish crowd a sheepish wave.
In the bronze medal shootout, two-time Red Bull X-Fighters champion Nate Adams claimed the win over Andre Villa to take the last podium spot of the night.
Follow Red Bull on Twitter for more news and updates.