Over the course of the next twenty years, the Decepticons succeeded in seizing control of all of Cybertron, forcing the Autobots to operate from their new city on Earth and two bases on Cybertron's moons. In the Earth year 2005, Prime, stationed on Moonbase One, dispatched troops to Earth to acquire energy for an upcoming strike on Cybertron. The Decepticons, however, got wind of the plan and used the shuttle run to attack Autobot City. A distress call summoned Prime and support troops to Earth. In the fearsome, ensuing, epic battle with Megatron, Optimus Prime sustained fatal wounds, but not before turning the tide of battle and forcing the Decepticons to flee. Despite the efforts of Perceptor, Optimus Prime went offline after passing the Matrix and role of leader to Ultra Magnus, despite protestations. His last words were "Until that day... 'till all are one." The Matrix later fell into the hands of Galvatron, a recreated Megatron, and was finally taken back by the young Autobot Hot Rod, who became Rodimus Prime after bearing the Matrix. Instead of giving the Matrix back to Ultra Magnus, Rodimus decided to take the duty of leadership, with Magnus as his second-in-command.