Britney Spears to Sing in 'Smurfs 2'

Britney Spears X Factor crowd P
Stew Milne / FOX

The pop star will release a new song, "Ooh La La," for the big-screen sequel.

Britney Spears is releasing a new song, "Ooh La La," for the upcoming Smurfs movie sequel from Columbia Pictures and Sony Pictures Animation.

The track will roll during the credits of The Smurfs 2, which hits theaters July 31; it was written and produced by Lukasz Gottwald in addition to Joshua Coleman and Henry Walter. Also getting "Ooh La La" writing credits: Bonnie McKee, Jacob Kasher Hindlin, Lola Blanc and Fransisca Hall.

"I have always loved the Smurfs as a kid and now my boys are the biggest Smurfs fans EVER. I wanted to surprise them with a song in the movie. I know they'll think it's Smurftastic!" said Spears in a statement Wednesday.

STORY: Bonnie McKee on Writing Hits for Pop's Leading Ladies: 'Britney Spears Is Just All Sex, All Day'

Spears, who is reportedly starting a residency in Las Vegas, left her gig as a judge on The X Factor earlier this year to "get back into the studio."

A surprise hit in 2011, The Smurfs grossed $564 million worldwide. Raja Gosnell returns to direct the CG/live-action hybrid with Neil Patrick Harris, Christina Ricci and Sofia Vergara among the voice cast.

"I just wrote something for Britney Spears for the Smurfs movie," songwriter McKee told THR. "Which was a really funny assignment because it’s for the Smurfs movie so it has to family friendly but it’s Britney Spears so it has to be a Britney Spears radio song. And Britney Spears is just all sex all day. So how many sexual innuendos can I come up with that aren’t too painfully obvious for the parents to get upset about. That was an interesting challenge."

With reporting by Emily Zemler

Twitter: @THRMusic