Warning: this article contains spoilers for Ms. Marvel season 1, episode 4.

Ms. Marvel co-creator Sana Amanat recently explained episode 4's surprising twist ending. The latest MCU Disney+ television series stars Iman Vellani as Kamala Khan, a Jersey City high school student who becomes imbued with cosmic powers through an old bangle sent to her by her grandmother. Amanat originally introduced the new version of Ms. Marvel in 2014 with a solo Marvel Comics run. Kamala Khan became the first Muslim superhero to headline her own comic book series, and now she is the first Muslim character to lead an MCU project.

Episode 4, "Seeing Red," found Kamala traveling to Karachi, Pakistan, at the request of her grandmother Sana (Samina Ahmad). This was spurred by a vision of a train in episode 3, "Destined," that both Kamala and Sana received due to the ClanDestines' leader Najma (Nimra Bucha) attempting to use the bangle. In Pakistan, Kamala set out to discover clues regarding her great-grandmother Aisha's (Mehwish Hayat) past and their familial origin as Djinns, a group of beings from a separate dimension known as the Noor. After encountering an ancient order of heroes known as the Red Daggers, she once again faced off against Najma and the ClanDestines, causing her to be seemingly transported back in time following a blow to her bangle.

Related: The MCU Just Made Its Alternate Dimensions Even More Confusing

In a recent interview with EW, Amanat discussed Ms. Marvel's surprising twist ending in episode 4 that saw Kamala possibly sent back in time to the Partition of India in 1947. When asked about why Amanat wanted to connect Kamala to that crucial time in history, the co-creator explained that knowing your past is an important part of figuring out the type of person you will be. Read what Amanat said below.

"I think it's always interesting to understand the different worlds that you belong to and what your relationship is to all of them. I think everyone should analyze their relationship to the place in which they are residing, to the place in which their families have come from, and the history behind all of it. That really gives you, not necessarily a sense of who you actually are, but it gives you the tools to be able to decide what kind of person you want to be."

How Ms Marvel Time Travels At The End Of Episode 4

Episode 4 finds Kamala in Pakistan struggling to understand her identity. Her cousins tease her about her lack of connection with her ancestral home, calling her an "ABCD" or American-Born Confused Desi. Through the use of the bangle, Amanat and showrunner Bisha K. Ali have tied Kamala's powers directly to her lineage in Pakistan, especially to her mysterious great-grandmother, Aisha, who originally retrieved the cosmic bangle from a long-dead and buried Djinn.

Kamala being sent back to the train station during Partition is crucial as it ties directly to Sana as a child when she lost sight of her parents. Sana claims she saw a trail of stars that led her back to her father before the last train departed. This may hint at either Aisha using the bangle to help guide her to safety or (if time travel actually occurred) Kamala intervening in her past, inadvertently creating a bootstrap paradox. Whether or not Kamala was actually sent back in time to 1947 or experienced a more in-depth visceral vision remains to be seen. However, Ms. Marvel's episode 5 is set to finally have Kamala confront her family's past and at least get a basic understanding of her deep multi-dimensional lineage.

Next: Ms. Marvel's Filming Locations: Where It's Shot

Source: EW

Key Release Dates