Sam and his love interest, Mikaela Banes (Megan Fox), discover that the Decepticons are searching for the AllSpark, a powerful artifact capable of giving life to machines, which is hidden somewhere on Earth. The Autobots, led by the noble Optimus Prime, arrive to protect humanity and prevent the Decepticon leader Megatron from obtaining the AllSpark and enslaving the human race.