Pre-production
After the release of Quantum of Solace in 2008, producer Barbara Broccoli commented that Skyfall, untitled at the time, may continue the plot of the Quantum organisation, introduced in Casino Royale and continued in Quantum of Solace.
In August 2011, the Serbian newspaper Blic stated that Bond 23 would be titled Carte Blanche and would be an adaptation of the recent continuation novel by Jeffery Deaver. On 30 August, Eon Productions officially denied any link between Bond 23 and Carte Blanche, stating that "the new film is not going to be called Carte Blanche and will have nothing to do with the Jeffery Deaver book". On 3 October 2011, fifteen domain names including jamesbond-skyfall.com and skyfallthefilm.com were reported to have been registered on behalf of MGM and Sony Pictures by Internet brand-protection service MarkMonitor. Skyfall was confirmed as the title at a press conference on 3 November 2011, during which co-producer Barbara Broccoli said that the title "has some emotional context which will be revealed in the film". The title refers to the name of Bond's childhood home, "Skyfall", and the setting for the film's finale.
The main cast was announced at a press conference held at the Corinthia Hotel in London on 3 November 2011, fifty years after Sean Connery had been announced as James Bond in the film Dr. No. Daniel Craig returned as James Bond for the third time, saying he felt lucky to have the chance. Mendes described Bond as experiencing a "combination of lassitude, boredom, depression [and] difficulty with what he's chosen to do for a living". Judi Dench returned as M for her seventh and final time.
Javier Bardem was cast as the principal villain, Raoul Silva, a cyberterrorist seeking revenge against those he holds responsible for betraying him. Bardem described Silva as "more than a villain", while Craig stated that Bond has a "very important relationship" to Silva. Mendes admitted that he had lobbied hard for Bardem to accept the part, and saw the potential for the character to be recognised as one of the most memorable in the series. He wanted to create "something [the audience] may consider to have been absent from the Bond movies for a long time", and felt that Bardem was one of the few actors able to become "colourless" and exist as more than just a function of the plot. In preparing for the role, Bardem had the script translated into his native Spanish, which Mendes cited as a sign of his commitment. Bardem dyed his hair blond for the role, after brainstorming ideas for a distinct visual look with Mendes, which led some commentators to suggest a resemblance to Julian Assange. Bérénice Marlohe was cast as Séverine, saved from the Macau sex trade by Silva and now working as his representative. Marlohe described her character as being "glamorous and enigmatic", and that she drew inspiration from GoldenEye villain Xenia Onatopp (played by Famke Janssen).
Ralph Fiennes was cast as Gareth Mallory, a former lieutenant colonel in the British Army and now Chairman of the Intelligence and Security Committee, which regulates MI6. At the end of the film, Mallory becomes the head of MI6, assuming the title of 'M'. During production, Fiennes stated that he could not say anything specific about the role other than that it was a "really interesting part which is really quite fun". Fiennes had previously been considered to play Bond during the casting of GoldenEye. Naomie Harris was cast as the returning character of Miss Moneypenny. Harris's role was initially presented as that of Eve, an MI6 field agent who works closely with Bond. Despite media speculation that Harris had been cast as Miss Moneypenny, this was not confirmed by anyone involved in production, with Harris herself dismissing claims that Eve was in fact Moneypenny. According to Harris, Eve "[believes] she is Bond's equal, but she is really his junior". Another returning character was Q, played by Ben Whishaw. Mendes had initially declined to confirm which part Whishaw would play, and later said the idea of the re-introduction was his, saying, "I offered ideas about Moneypenny, Q and a flamboyant villain and they said yes". To play the part of Kincade, Mendes cast Albert Finney. The producers briefly considered approaching Sean Connery to play the role in a nod to the 50th anniversary of the series, but decided not to as they felt Connery's presence would have been seen as stunt casting and might disengage the audience. Skyfall also marked the final film role of Finney before his death in 2019.
Mendes first signed on to direct the project shortly after Quantum of Solace was released, and remained as a consultant during the uncertainty surrounding MGM's financial situation. It was Craig's idea that Mendes should be the next Bond director, as Mendes had previously worked with Craig on Road to Perdition. In 2009, Mendes saw Craig's performance on Broadway in A Steady Rain. Later, at Hugh Jackman's Christmas party, Craig got drunk, encountered Mendes, and offered him the job. The next morning, Craig had to explain to Broccoli: "I think I might have offered Sam Mendes the next movie". Mendes was at first hesitant, as the job had little appeal to him, but he did not reject the offer immediately because of Craig's involvement and enthusiasm; Mendes described Craig's casting and performance in Casino Royale as being what he felt the Bond franchise needed. He agreed to direct after meeting producers Michael G. Wilson and Barbara Broccoli, and seeing the early direction the film was going to take. Media speculation was that Mendes had commissioned rewrites of the script to "[remove] action scenes in favour of 'characterful performances'" with the hope of securing an Academy Award. Mendes denied this, saying that the action scenes were an important part of the film.
Roger Deakins signed on as cinematographer, having previously worked with Mendes on Jarhead and Revolutionary Road. Dennis Gassner returned as production designer, the costume designer was Jany Temime, Alexander Witt was director of the second unit, the stunt co-ordinator was Gary Powell and Chris Corbould supervised the special effects, while the visual effects supervisor was Steve Begg. All had worked on previous Bond films. Daniel Kleinman returned to design the title sequence after stepping aside to allow graphic design studio MK12 to create the Quantum of Solace sequence.
Peter Morgan was originally commissioned to write a script, but left the project when MGM filed for bankruptcy and production of the film stalled. Despite his departure, Morgan later stated that the final script was based on his original idea, retaining what he described as its "big hook". Mendes denied this as "just not true", insisting that Morgan's approach had been discarded once he had agreed to direct. Robert Wade later said that "Neal and I were pretty steeped in Fleming. I think Peter was more interested in Le Carré. It just didn't work." Morgan cowrote the treatment Once Upon a Spy with Neal Purvis and Robert Wade, which had M being blackmailed by a Russian oligarch, who would be a former KGB agent she had an affair with while stationed in West Berlin during the Cold War. The script would have ended with Bond being forced to kill M. Mendes disliked most of the script but asked to keep the ending with M's death.
Purvis and Wade then wrote a new script drawing from You Only Live Twice (1964) and The Man with the Golden Gun (1965), in which Bond is presumed dead after an accident and travels back to London to an uncertain MI6. The original screenplay would have more closely followed the literary series' story arc with Bond becoming an amnesiac and unknowingly impregnating his lover Lily in Turkey, who would have tracked him down to London after he returned to MI6. It would have featured Bond tracking down a Francisco Scaramanga-esque villain into the Andes Mountains, and would have had a "Heart of Darkness feel." The screenplay was delayed because of MGM's financial problems. At the end of 2010, Purvis and Wade completed a draft titled Nothing is Forever in which a villain called Raoul Sousa kills M with a bombing aboard the Barcelona Metro and leaves a bureaucrat named Mallender as the new M. They still disliked the third act, and so later revised it to include the ending in Scotland. The final script was rewritten by John Logan, who kept most of Purvis and Wade's basic story. Logan recounted being brought into the project by his long-time friend Mendes, describing the process between Mendes and the writers as "very collaborative", and that writing Skyfall was one of the best experiences he had had in scripting. British playwright Jez Butterworth also provided uncredited contributions.
In April 2011, Mendes and Broccoli travelled to South Africa for location scouting. With the film moving into pre-production in August, reports emerged that shooting would take place in India, with scenes to be shot in the Sarojini Nagar district of New Delhi and on railway lines between Goa and Ahmedabad. The production crew faced complications in securing permission to close sections of the Konkan Railway. Similar problems in obtaining filming permits were encountered by production crews for The Dark Knight Rises and Mission: Impossible – Ghost Protocol. Permission was eventually granted to the Bond production crew; the production ultimately did not shoot in India.