Original: 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.