The Kingdom is a 2007 action thriller directed by Peter Berg and starring Jamie Foxx, Chris Cooper, Jennifer Garner, Jason Bateman, and Ashraf Barhom, with Kyle Chandler, Jeremy Piven, Richard Jenkins, and Ali Suliman. After an American oil company housing compound in Riyadh, Saudi Arabia is bombed by al-Qaeda terrorists, FBI Special Agent Ronald Fleury (Jamie Foxx) forces the Saudi ambassador into allowing an FBI investigative team into Saudi Arabia. Fleury's team is only allowed to observe the Saudi investigation. However, when Fleury's convoy is attacked by terrorists, and one team member is captured, the team has to go into action. The film is fictional, but it was inspired by bombings at the Khobar housing complex on June 25, 1996 and the Riyadh compound on May 12, 2003 in the kingdom of Saudi Arabia. Screenwriter Matthew Michael Carnahan has summarized the plot as, "What would a murder investigation look like on Mars?”The film was screened at the Edinburgh International Film Festival as its yearly "surprise" film on August 22, 2007.