WARNING: The following article contains spoilers for this week's episode of Gotham, "I Am Bane," which aired Thursday on Fox.

Over the course of its final season, Gotham has taken us by surprise over and over again as it kept revealing villains who we thought, at the time, were going to be the big bad of Season 5, only for it to be revealed that they were simply pawns to someone higher on the food chain. It started off when we thought that Edward Nygma's the Riddler was revealed as the mysterious threat plaguing the good citizens of Gotham. But then, we later learned that it was actually Eduardo Dorrance, the future Bane, who was pulling Nygma's strings.

Now, in the series' latest episode, "I Am Bane," the hulking Batman villain takes center stage. But just when we thought we had it all figured out, Gotham managed to, once again, pull the rug out from under us. How? By revealing that there is yet another villain behind him. That's right, Bane's origin is actually tied to another major Batman villain.

So, who created Bane? Ra's Al Ghul's daughter, Nyssa Al Ghul.

RELATED: Gotham: Bane's Origin is Rooted in the History of Another Major Bat Villain

Nyssa actually appeared previously in Season 5, although we had no idea who she really was at the time. When we first saw her -- when we first heard mention of her -- she was known as Secretary Walker, the political leader behind Eduardo Dorrance's mercenaries and the one Jim Gordon was communicating with across the mainland.

Walker, played by actress Jaime Murray, first appeared in the episode "13 Stitches," where she found a dying Dorrance and gifted him with the mask that would not only save his life, but transform him into Bane. In "I Am Bane," though, Walker reveals her real identity: She is the daughter of Ra's Al Ghul and she has come to take her revenge on Bruce Wayne.

As viewers might recall, Bruce Wayne (indirectly) killed the leader of the League of Assassins in the Season 4 finale. Now, Nyssa doesn't just want to kill Bruce -- she wants to make him suffer before she does so. How? By destroying his home, Gotham City.

The revelation that Nyssa Al Ghul is behind Bane is actually similar to Christopher Nolan's The Dark Knight Rises, a movie that featured both Bane and Talia Al Ghul as the main villains. However, it appears as if Gotham instead opted to give the role to Ra's lesser-known daughter. While she was never a major character in the comics, Nyssa Al Ghul first rose to prominence thanks to the character's inclusion in The CW series Arrow, where she was played by Katrina Law.

Now, with only a couple of episodes left, Gotham has just revealed the true, villainous mastermind of Season 5. Bane may be the muscle, but Nyssa is the real force behind all this destruction.

KEEP READING: Gotham: An Even Better Look at Leaked Batsuit Surfaces Online

Airing Thursdays at 8 p.m. ET/PT on Fox, Gotham stars Ben McKenzie as James Gordon, Donal Logue as Harvey Bullock, David Mazouz as Bruce Wayne, Robin Lord Taylor as Penguin, Camren Bicondova as Selina Kyle, Erin Richards as Barbara Kean, Sean Pertwee as Alfred Pennyworth and Shane West as Bane.