Jack Black has signed up for 'Sex Tape'.

The 43-year-old actor will appear opposite leading stars Cameron Diaz and Jason Segel in the upcoming comedy movie, which will tell the story of a couple who decide to make a sex tape in a bid to spice up their marriage, but they end up losing the footage.

Black will portray the Chief Executive of a major porn company who gets his hands on the elusive X-rated clip, a source told The Wrap.

The film has been written by Kate Angelo and is to be directed by 'Bad Teacher' helmer Jake Kasdan, while Todd Black, Jason Blumenthal and Steve Tisch are to produce the motion picture.

It's not the first time Black has teamed up with Segel after previously starring alongside him in 'Gulliver's Travels'.

What's more, Black also appeared with Diaz in 2006 romantic comedy 'The Holiday', which also starred Kate Winslet as his on-screen love interest and Jude Law.

Black is due to reprise his role as the titular character in 'Kung Fu Panda 3', which is to be released in 2015.