Transformers is a 2007 American science fiction action film based on Hasbro's toy line of the same name. Directed by Michael Bay from a screenplay by Roberto Orci and Alex Kurtzman, it is the first installment in the Transformers film series. The film stars Shia LaBeouf as Sam Witwicky, a teenager who gets caught up in a war between the heroic Autobots and the evil Decepticons, two factions of shape-shifting alien robots. The Autobots and Decepticons both seek a powerful artifact called the AllSpark, to win the war that has devastated their home planet of Cybertron.