"Django Unchained" stars Jamie Foxx as the revenge-seeking slave of the title, but it wasn't a fait accompli that the Oscar-winning actor would play the role. Director Quentin Tarantino had first wanted Will Smith to play the part, and actors like Idris Elba, Anthony Mackie, Larenz Tate and Michael K. Williams were all connected to "Django Unchained" at one point or another. Foxx won out, but it wasn't always smooth sailing once he was hired.

"How do you go all the way back to allow the ghosts of slaves, or ancestors to speak to you? Quentin challenged me on that," Foxx says in a new behind-the-scenes video from "Django Unchained" that HuffPost Entertainment is happy to exclusively debut above. "First time we went to the rehearsal, I was like, 'Nah, I want to say it like this.' I was really putting me into the character. He pulled me to the side, and said, 'This is what I was worried about in grabbing someone like you. Can you actually play a slave?' It hit me, like, 'Wow, he's questioning me.' That made me work harder."

In the end, it all worked out just fine. As Tarantino says, "Jamie got what I was trying to do."

Starring Foxx, Leonardo DiCaprio, Christoph Waltz, Kerry Washington, Samuel L. Jackson, Walton Goggins and Jonah Hill, "Django Unchained" is out in theaters now. Watch the new clip above.

Loading Slideshow...
  • Quentin Tarantino, Uma Thurman

    Quentin Tarantino, left, and Uma Thurman attend the premiere of "Django Unchained" on Tuesday, Dec. 11, 2012 in New York. (Photo by Charles Sykes/Invision/AP)

  • Uma Thurman

    Uma Thurman attends the premiere of "Django Unchained" on Tuesday, Dec. 11, 2012 in New York. (Photo by Charles Sykes/Invision/AP)

  • Leonardo DiCaprio

    Leonardo DiCaprio attends the premiere of "Django Unchained" on Tuesday, Dec. 11, 2012 in New York. (Photo by Charles Sykes/Invision/AP)

  • Nichole Galicia

    Nichole Galicia attends the premiere of "Django Unchained" on Tuesday, Dec. 11, 2012 in New York. (Photo by Charles Sykes/Invision/AP)

  • Liv Tyler

    Liv Tyler attends the premiere of "Django Unchained" on Tuesday, Dec. 11, 2012 in New York. (Photo by Charles Sykes/Invision/AP)

  • Don Johnson, Kelley Phleger, Dakota Johnson,

    Don Johnson and his wife Kelley Phleger, left, and daughter Dakota Johnson, right, attend the premiere of "Django Unchained" on Tuesday, Dec. 11, 2012 in New York. (Photo by Charles Sykes/Invision/AP)

  • Jamie Foxx

    Jamie Foxx attends the premiere of "Django Unchained" on Tuesday, Dec. 11, 2012 in New York. (Photo by Charles Sykes/Invision/AP)

  • Olivia Wilde

    Olivia Wilde attends the premiere of "Django Unchained" on Tuesday, Dec. 11, 2012 in New York. (Photo by Charles Sykes/Invision/AP)

  • Jamie Foxx, Samuel Jackson, Christoph Waltz, Don Johnson

    Jamie Foxx, from left, Samuel Jackson, Christoph Waltz and Don Johnson attend the premiere of "Django Unchained" on Tuesday, Dec. 11, 2012 in New York. (Photo by Charles Sykes/Invision/AP)

  • In this undated publicity photo released by The Weinstein Company, from left, Jamie Foxx as Django and Leonardo DiCaprio as Calvin Candle star in the film, "Django Unchained," directed by Quentin Tarantino. "Flight," "Django Unchained," "Beasts of the Southern Wild," "Red Tails" and "Tyler Perry's Good Deeds" are up for the outstanding motion picture trophy at the 44th annual NAACP Image Awards. (AP Photo/The Weinstein Company, Andrew Cooper, SMPSP)

  • Kerry Washington

    Kerry Washington speaks at the "Django Unchained" panel at Comic-Con, Saturday, July 14, 2012, in San Diego. (Photo by Jordan Strauss/Invision/AP)

  • Jamie Foxx

    Jamie Foxx speaks at the "Django Unchained" panel at Comic-Con, Saturday, July 14, 2012, in San Diego. (Photo by Jordan Strauss/Invision/AP)

  • Quentin Tarantino

    Quentin Tarantino speaks at the "Django Unchained" panel at Comic-Con, Saturday, July 14, 2012, in San Diego. (Photo by Jordan Strauss/Invision/AP)

  • Jamie Foxx

    Jamie Foxx poses at the "Django Unchained" press line at Comic Con, Saturday, July 14, 2012, in San Diego. (Photo by Jordan Strauss/Invision/AP)

  • Kerry Washington

    Kerry Washington poses at the "Django Unchained" press line at Comic Con, Saturday, July 14, 2012, in San Diego. (Photo by Jordan Strauss/Invision/AP)

  • Jamie Foxx

    Jamie Foxx poses at the "Django Unchained" press line at Comic Con, Saturday, July 14, 2012, in San Diego. (Photo by Jordan Strauss/Invision/AP)

  • Christoph Waltz

    Christoph Waltz poses at the "Django Unchained" press line at Comic Con, Saturday, July 14, 2012, in San Diego. (Photo by Jordan Strauss/Invision/AP)

  • Kerry Washington

    Kerry Washington poses at the "Django Unchained" press line at Comic Con, Saturday, July 14, 2012, in San Diego. (Photo by Jordan Strauss/Invision/AP)

  • "Django Unchained" Panel - 2012 Comic-Con International

    SAN DIEGO, CA - JULY 14: (L-R) Actors Jamie Foxx, Walton Goggins, and Don Johnson speak at the 'Django Unchained' panel during Comic-Con International 2012 at San Diego Convention Center on July 14, 2012 in San Diego, California. (Photo by Kevin Winter/Getty Images)

  • "Django Unchained" Panel - 2012 Comic-Con International

    SAN DIEGO, CA - JULY 14: Writer/director Quentin Tarantino (L) and actor Jamie Foxx speak at the 'Django Unchained' panel during Comic-Con International 2012 at San Diego Convention Center on July 14, 2012 in San Diego, California. (Photo by Kevin Winter/Getty Images)

  • "Django Unchained" Panel - 2012 Comic-Con International

    SAN DIEGO, CA - JULY 14: Actor Christoph Waltz speaks at the 'Django Unchained' panel during Comic-Con International 2012 at San Diego Convention Center on July 14, 2012 in San Diego, California. (Photo by Kevin Winter/Getty Images)

  • "Django Unchained" Panel - 2012 Comic-Con International

    SAN DIEGO, CA - JULY 14: Writer/director Quentin Tarantino speaks at the 'Django Unchained' panel during Comic-Con International 2012 at San Diego Convention Center on July 14, 2012 in San Diego, California. (Photo by Kevin Winter/Getty Images)

  • "Django Unchained" Panel - 2012 Comic-Con International

    SAN DIEGO, CA - JULY 14: Actor Jamie Foxx speaks at the 'Django Unchained' panel during Comic-Con International 2012 at San Diego Convention Center on July 14, 2012 in San Diego, California. (Photo by Kevin Winter/Getty Images)