With the revival of the Transformers comics by Dreamwave Productions in 2002, a new trilogy of novels (Hardwired, Annihilation and Fusion) appeared written first by Scott Ciencin and later by David Cian. The first book was written by Ciencin, while the latter two are written by Cian. In this period, a short story anthology entitled Legends, edited by Cian and Steven Roman, also appeared.
Set in the Dreamwave continuity at a point between their first and second Generation One miniseries, Hardwired followed Prime, Megatron, Jazz and other Transformers as they were abducted by a mysterious alien race known as the Keepers and forced to fight in gladiatorial combat. On Earth, Starscream took command of the Decepticons and took over Las Vegas, leaving Grimlock (not trusted due to his actions in the first miniseries) to lead the remaining Autobots to stop him. The novel ended with the abducted Transformers returning to Earth - with Bluestreak and several humans possessed by the Keepers.
In Annihilation, Megatron attempts to reclaim his leadership of the Decepticons, but is defeated by Starscream and Devastator as Prime attempts to rally the Autobots. Megatron walks out of the Decepticons with a band of devoted followers to ally with the Autobots against the Keepers (who now possess many of the Autobots and Decepticons). They defeat them, but Megatron claims his "favor" for helping the Autobots - to become the next Matrix bearer.
In Fusion, Prime gives Megatron the Matrix, unwilling to break his word of honor, as the possessed Autobots and Decepticons return to normal. However, the Keepers are not yet defeated and plan to return to Earth via a warpgate as the US military tries once more to destroy all the Transformers. In the end, the Keepers are defeated when Megatron's reprogrammed Omega Sentinel, turned good by exposure to the Matrix, sacrifices itself and Devastator to close the gate.