Transformers
(1986)

The world gobbleling planet Unicron transforms into a giant robot and attacks Cybertron. Spike, his son Daniel, Cup, Hotrod, Galvatron and a few others try to find their way out from inside Unicron. Hotrod reclaims the Autobot Matrix of Leadership from Galvatron which transforms into the new Autobot leader Rodimus Prime. He throws Galvatron thru the wall of Unicron sending him hurdling thru space. Rodimus opens the Matrix revealing bright lights which destroy Unicron. The Autobots fly out of Unicron just as he explodes. The Autobots return to Cyberton, reclaiming their homeworld from the Decepticons. Ending scene shows the head of Unicron flying thru space.

Thanks David!