McDiarmid was cast by George Lucas in Return of the Jedi as Emperor Palpatine , the main villain .
After a minor part in the film Dragonslayer , McDiarmid was cast by George Lucas in Return of the Jedi as Emperor Palpatine , the principal villain .