Professor Charles Francis Xavier, also known simply by his codename Professor X, is a fictional character primarily portrayed by Patrick Stewart, James McAvoy, and Harry Lloyd in 20th Century Fox's X-Men franchise and the Marvel Cinematic Universe (MCU) franchise produced by Marvel Studios, based on the Marvel Comics character of the same name created by Stan Lee and Jack Kirby.