The story begins years after the devastating battle between Autobots and Decepticons in Chicago, which left the city in ruins. Humanity, fearful of the transforming robots, has decided to turn its back on them and hunt them down. In the midst of this hostile environment, Cade Yeager, an unemployed inventor, discovers an old truck that is none other than Optimus Prime, the leader of the Autobots, who has been hiding. Realizing what he has found, Cade joins his daughter, Tessa, and his friend Shane to protect Optimus from the Autobots hunters.
Meanwhile, a massive tech corporation, led by the villain Lockdown, and the CIA are on the trail of the Transformers, intending to exploit their technology for their own dark purposes. With the world against them, Cade and his friends embark on an epic adventure to save the Autobots from being exterminated, while also facing new and powerful enemies.
Along the way, the fight between the Autobots and Decepticons reignites, and a new chapter in the history of the war unfolds, with the introduction of the Dinobots, prehistoric beings that add an unexpected twist to the battle. Loyalty, courage, and tough choices become the thread that connects this action-packed film, filled with spectacular explosions and, of course, impressive transformations.