Then came Transformers: The Last Knight, where Quintessa, the creator of the Cybertronians, tried to restore Cybertron by draining Unicorn, a.k.a.
As revealed in 2007’s Transformers, the AllSpark was responsible for creating life on Cybertron, and for millennia, the planet was a peaceful place.
In Transformers: Dark of the Moon, Sentinel Prime tried to transport Cybertron directly next to Earth and intended to use humans as slaves to rebuild it, but he was unsuccessful.
Although Optimus Prime and his allies were able to Quintessa and save Earth, she had drained enough of Earth’s energy that in the present day, Cybertron is now habitable once again.