While Hasbro and the producers proved short-sighted in several respects, and, while the movie was initially a flop due to negative reaction over the deaths of beloved characters, it introduced several elements that, over the next 20 years, including several cartoon and comic book series would grow into an interesting mythology.
While the movie had a comic book adaptation, it took place clearly in the continuity of the Sunbow cartoon series. The US Marvel comic did not address the movie elements until 1989, when writer Simon Furman expanded the seeds planted in the movie.
Sadly, in the desire to make the live action movie accessible to casual audiences, the writers reinvented the mythology of the series.
But the mythology created by the movie writers and Furman, while it has certain polytheistic and transcendentalist elements that are easily dismissed, has, at its core, elements that are clearly anagogical to Catholicism.
The Transformers’ God is Primus, the First One. He created Cybertron and stored His Presence in the center of the planet (in the 2005 series Transformers Cybertron, Cybertron itself transforms into Primus, referenced in the attached webcomic).
Primus also stored His Essence in the Creation Matrix (aka Autobot Matrix of Leadership), which was originally introduced in the early Marvel issues as being the source of Transformer life. If Narnia doesn’t have a cognate to the Eucharist, Transformers does; it’s the Matrix. In the cartoon series, the Autobot leaders are so wise because they can tap into the Matrix and confer with the “Sparks” (souls) of previous Matrix-bearers and other Autobot “saints” that have gone on to Transformer afterlife, the “Allspark” (In order to avoid copyright issues with a certain other film series, the writers of the 2007 movie changed the name of the Matrix to the Allspark).
The Matrix is passed down through a line of Autobot leaders known as the Primes (Popes?). Marvel #65 lists them as Prima, Prime Nova, Sentinal Prime, Optimus Prime. Certain continuities also have Vector Prime (introduced in the 2000s as the “original” Prime in all continuities) and Rodimus Prime (introduced in the 1986 movie). A few others have held the Matrix in certain continuities: Alpha Trion, Ultra Magnus, and the Decepticons Galvatron and Thunderwing. But the unworthy cannot access the power of the Matrix (in Marvel, the Matrix does become corrupted by an alien lifeform that is mutated by its power, and that lifeform merges with the Decepticon Thunderwing, but Optimus Prime easily purifies the Matrix when he’s reunited with it).
The Matrix also has the power to defeat Unicron. (In the 1987 two-parter “Return of Optimus Prime,” the Matrix also exorcizes a galatic “hate plague”).
“Unicron? Who’s Unicron?” asked Hot Rod.
Well, Unicron is, in short, the Devil. Unicron was a powerful demon who rebelled against Primus and sought to overthrow creation by consuming it. He possessed a young asteroid and manipulated it to transform into a body resembling his spiritual form. He then set out to consume planets and lifeforms across the universe, in the hope of becoming Primus himself. Lewis would approve: Cybertronians have a different devil, and, therefore, a different path to salvation.
In reaction, Primus designed the Transformers to mimic Unicron’s transformation abilities. Over time, Unicron was able to occasionally develop connections with individuals on Cybertron, who came to worship him.
Different series have dealt with the situation differently, but it always comes down the apocalyptic battle where the Matrix destroys Unicron.