After the events of The Last Knight, Primus (Cybertron) has now become a physical form, but he is dying and Optimus Prime, the Autobots, and a small band of humans must travel back in time and find the AllSpark to heal Primus before Megatron and the Decepticons find it and bring it to Unicron. But Unicron messes with time and brings the Autobots and the Decepticons and other Transformers from the past and the future!