Mahindra Racing’s Felix Rosenqvist won his second race in a row after a flawless performance at the ABB FIA Formula E Championship Marrakesh E-Prix knocking Britain’s Sam Bird off the top of the Drivers’ Championship.

Sebastien Buemi in pole was looking to make it two wins in two years at the Circuit Moulay El Hassan but with just four laps to go last year’s Rookie of the Year produced a textbook overtaking manoeuvre to steal the chequered flag.

The Renault.e.dams driver blamed the failure of his FANBOOST energy boost for the loss of position which caused the Swiss to settle for second place ahead of Britain’s Sam Bird who was left a frustrated third place.

Rosenqvist now leads the ABB FIA Formula E Drivers’ Championship for the first time in his career.

There was some added stardust with A-list actors Leonardo DiCaprio and Orlando Bloom watching on as Bloom celebrated his 41-st birthday.

Bloom even got behind the wheels of a Formula E race car and was also surprised with a huge Formula E cake at his birthday celebrations. The Pirates of the Caribbean star was effusive in his praise for the championship.

He said: “I have wanted to come and watch a race live for some time. Formula E is at the heart of advancing electric technology and shaping the cars of the future. 

“I've always loved cars - I've always loved fast cars - and now this has a guilt-free capacity because you can enjoy all of that, whilst knowing that you're doing something that's going to have a good impact on the environment.”

Buemi started the day perfectly with a great qualifying lap of 1:20.355 which saw him take pole followed closely by Bird in second and Rosenqvist in third.

Reigning champion Lucas di Grassi had yet another weekend to forget after he suffered another technical failure and his race was over just nine laps in. The Brazilian remains rooted to the bottom of the leader board without a single point to his name.

Bird’s teammate at DS Virgin Racing Alex Lynn came off the track early into the race and dropped from seventh place to the back of the grid.

The next Formula E-Prix takes place in Santiago, Chile on Saturday 3 February.