text: 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 .
simplified: McDiarmid was cast by George Lucas in Return of the Jedi as Emperor Palpatine , the main villain .