2008–2018: International recognition and critical acclaim
Ejiofor was appointed Officer of the Order of the British Empire (OBE) in the 2008 Birthday Honours. In the same year, he made his directorial debut in the short film Slapper, which he also wrote, based on an idea by editor/director Yusuf Pirhasan. Ejiofor appeared alongside John Cusack in the film 2012 (2009). The film went on to gross over $700 million and is among the list of highest-grossing films of all time placing 5th among the top films of 2009. He played CIA officer Darryl Peabody in Salt (2010), and the Golden Globe Award-nominated leading role of band creator Louis Lester on the BBC Two drama series Dancing on the Edge (2013), which played on Starz in the United States.
In 2013, Ejiofor took on the role of Solomon Northup in 12 Years a Slave. The film was based on Northup's memoir, edited in 1968 by historians Sue Eakin and Joseph Logsdon, of Northup's experience as a free black man in New York, who was kidnapped in 1841 and sold into slavery in Louisiana. On casting, director Steve McQueen said:
Chiwetel Ejiofor was always going to be Solomon Northup for me. I was looking for someone who had that genteelness, that kind of humanity. Knowing that humanity was going to be tested under certain duress and circumstances, I needed someone who could actually keep hold of that, even through periods of extraordinary trying and extraordinary situations where it would be tested to its absolute limit. He was the only person.
At the Toronto International Film Festival, Ejiofor said he briefly hesitated about playing Northup. "You wait all your life for a great script to come through the door. You're hassling your agent and all that, and then it comes, and you read it, and your first reaction surprises you. Your first reaction being, 'Can I do this?'" He accepted the role about 24 hours later. As part of his preparation for the role, Ejiofor learned to play the violin, collected slave stories, maintained a slave's edge-up hairstyle, and engaged in some of the physical labour Northup was subjected to, including cotton picking. Since he had not worked with McQueen before, Ejiofor also observed the working dynamic between the director and co-star Michael Fassbender, who worked with McQueen on Hunger (2008) and Shame (2011). On playing Northup, Ejiofor felt a responsibility, not being American, to get the story of Solomon Northup's story as accurately as he could, adding, "I've been very grateful to show the film to his descendants and see them be so proud of it."
12 Years a Slave opened to wide acclaim, with many critics citing Ejiofor's performance and declaring him an almost-certain Academy Award nominee for Best Actor. From Owen Gleiberman at Entertainment Weekly: "It is Chiwetel Ejiofor's extraordinary performance that holds the movie together, and that allows us to watch it without blinking. He plays Solomon with a powerful inner strength, yet he never soft-pedals the silent nightmare that is Solomon's daily existence." From Christopher Orr at The Atlantic: "Ejiofor has given notable performances in the past (Dirty Pretty Things, Serenity, Talk to Me), but this is by far his most essential role to date. Stoic, watchful, compromising himself just enough to stay alive, he is the point of stillness and decency around which spin the madnesses of the film." In his The Hollywood Reporter review, Todd McCarthy wrote, "Ejiofor is terrific in a demanding character who's put through the wringer physically, mentally, and emotionally." On 16 January 2014, Ejiofor was officially nominated for Best Actor for the 86th Academy Awards on 2 March.
As of September 2013, Ejiofor was slated to portray Patrice Lumumba in a film adaptation of Aimé Césaire's A Season in the Congo, a role in which he had performed on stage at the Young Vic. Joe Wright, who directed the play, was also to direct the film.
In 2014, Ejiofor starred in the Nigerian film Half of a Yellow Sun alongside Thandiwe Newton. It was announced in June 2014 that Ejiofor would play real-life drug dealer Thomas McFadden in a film based on the book Marching Powder: A True Story of Friendship, Cocaine, and South America's Strangest Jail, written by McFadden and Australian journalist Rusty Young. In 2016, Ejiofor co-starred with his friend Benedict Cumberbatch and played Karl Mordo in the Marvel Cinematic Universe film Doctor Strange. That same year, it was announced that he would play Peter in the upcoming film Mary Magdalene, written by Helen Edmundson and directed by Garth Davis.