Earlier this week, we reported thatOnce Upon a TimestarLiam Garrigansigned on to playKing Arthurin Paramount’s upcoming action sequelTransformers: The Last Knight. This essentially confirmed months of rumors that this sequel will have connections to the medieval story involving both King Arthur and the mystical legend Merlin. Today, we have new details that may reveal the inspiration for this tale. While this report hasn’t been confirmed, it’s possible this tale was actually pilfered from the originalTransformersanimated series.

BeforeLiam Garriganwas cast, who ironically played King Arthur onOnce Upon a Time, there had beenplot rumorsthat the story centers on Optimus Prime returning to Earth in search of a mysterious artifact, which has ties to both King Arthur and the magician Merlin.Santiago Cabrera, who had previously been cast but whose character was never revealed, is playing Merlin.The Hollywood Reporter revisits the first timeTransformersand King Arthur crossed paths, which may be the inspiration for this new tale.

Back in 1985, theTransformersanimated series aired an episode entitledDecepticon Raider in King Arthur’s Court. The episode featured a number ofAutobotsand Decepticons in present day who enter a cave that turns out to be a portal to 6th Century England, where they meet a re-named King Arthur (Sir Aetheling), his knights of the Round Table, and Merlin, who was called Beorht in this episode. The robots in disguise teamed up with Arthur to fend off the Decepticons and Mordred, re-named Sir Wigend, with jousting dragons, before the Transformers went back to their era.

There was another medievalTransformersstory told through the BritishTransformerscomic book, which also came out in 1985. That story, a four-part tale, featured a lone Transformer wandering around 11th Century England, which is long after the King Arthur tale took place, but it’s when his legend started to grow. Paramount has yet to confirm if thisTransformersepisode and comic book serve as the inspiration for this story, but it’s worth noting that the massivewriters roomformed to generate sequel and spinoff ideas, was tasked with going back through the entire history of this franchise, including the original series, toys and comic books, to find ideas for sequels and spinoffs.

Another hint that this story may be based on the original animated series episode is thenew posterrevealed earlier this month, which showcased Optimus Prime’s new look, but also featured a number of robot dragons in the background.Transformers 5was written byArt Marcum,Matt HollowayandKen Nolan, who were all part of the writers room, but Paramount hasn’t offered any official story details yet. It’s also worth noting that set photos recently surfaced featured actors wearing medieval costumes while riding on horseback, but we still don’t know how they fit into the story quite yet. Here are two clips from the animated series episode ‘A Decepticon Raider in King Arthur’s Court’.