Justin Theroux has been cast as the villain for Your Highness, joining Danny McBride, James Franco, Natalie Portman and Zooey Deschanel in the Universal comedy directed by David Gordon Green.

According to The Hollywood Reporter, the film centers on an arrogant, lazy prince (McBride) who must complete a quest to save his father's kingdom. Theroux will play Leezar, an evil wizard with a bejeweled magical staff who kidnaps a princess (Deschanel).

The film, which is shooting in Ireland, was written by Ben Best and McBride, who also is producing.