Jarhead is a 2005 film starring Jake Gyllenhaal based on a Gulf War memoir written by Anthony Swofford while he was in the Marines. The film was directed by Sam Mendes (Revolutionary Road, American Beauty, Road to Perdition) and the screenplay was written by William Broyles, Jr. (Cast Away, Unfaithful) Jarhead follows the life on Anthony Swofford as he travels to Iraq to fight as part of Operation Desert Shield. LCpl/PFC Anthony Swofford and friend Cpl. Alan Troy (Peter Sarsgaard) receive rigorous training for a war that requires very little from them physically. The training and dedication to war has them both desperately wanting to make a kill while they were mostly faced with boredom. The film received mixed to positive reviews from critics. Roger Ebert awarded it three-and-a-half out of four stars. A.O. Scott perceived the film differently stating the film was "a minor movie about a minor war, and a film that feels, at the moment, remarkably irrelevant."