The Tesseract, or Space Stone, has appeared throughout the history of the Guardians of the Galaxy, the Infinity Stones originated from the universe before the current one; they somehow survived the Big Crunch of their universe and the Big Bang that created the new. "The remnants of these systems were forged into concentrated ingots," the Collector continued. "Infinity Stones."

It's generally assumed the Celestials were the ones who did this. The Celestials existed when the universe was very young, and they have been associated with several of the Infinity Stones; the Collector showed chilling footage of the Avengers: Endgame, Nebula described the Soul Stone as being hidden on Vormir, "the center of Celestial civilization." Whatever the case may be, at some point in time, someone chose to scatter the Infinity Stones across the stars, concealing them. The Space Stone became the Tesseract, and it was secreted on Asgard, the jewel of Odin's treasure vault. Ancient images show the All-Father using the Space Stone to travel between the Nine Realms. It's reasonable to assume the Bifrost Bridge was originally created using the Tesseract.

Related: The Tesseract Has Appeared In More Marvel Movies Than Captain America

For unknown reasons, Odin decided to hide the Tesseract away on Earth. According to Marvel's official timelines, he did this in 1409 AD, trusting the Tesseract to a cult at Tønsberg, Norway. The cult remained until the 20th century, guarding the Tesseract with their lives.

The Tesseract Was Discovered In Captain America: The First Avenger

MCU Red Skull Holds Tesseract

The Tesseract remained hidden until 1942 when it was recovered by the Red Skull and the forces of Hydra. The Red Skull believed the myths of Asgard and the Norse gods contained the seeds of truth, and he had discovered the existence of the cult of Odin at Tønsberg. Realizing the treasures they guarded, the Red Skull laid siege to Tønsberg, successfully capturing both the Tesseract and the Book of Yggdrasil. Seen in more detail in Red Skull thus learned the secrets of the universe, including the existence of the Infinity Stones.

As shown in Soul Stone. The Tesseract was lost in the ocean, recovered by Howard Stark sometime later as he attempted to find Captain America's body. As revealed in Avengers: Endgame, Stark kept the Tesseract close at hand over the decades, continuing to study it.

The Tesseract Resurfaced In Captain Marvel

Captain Marvel Tesseract

The Tesseract found its way to Project PEGASUS, a t venture between SHIELD and the USAF. Howard Stark worked with Project PEGASUS at some point - Tony Stark accessed his father's PEGASUS records in Captain Marvel, Mar-Vell created a prototype ship powered by Tesseract technology. Unfortunately, it was shot down by the Kree, and Mar-Vell was killed. Her pilot, Carol Danvers, was irradiated with Tesseract energy and granted phenomenal powers. Mar-Vell had taken the Tesseract, hiding it aboard a cloaked ship in orbit around Earth; it was lost for years.

Related: Captain Marvel 2 Could Give Carol A New Power (Thanks To Space Stone Retcon)

Carol Danvers was taken by the Kree and brainwashed into becoming one of their agents. However, the brainwashing didn't take, and her memories gradually returned when she arrived on Earth again in 1995. She learned the truth of her own past, discovered Mar-Vell's identity, and even located the Tesseract. It was swallowed by Goose, an alien Flerken, and sometime later was vomited back up on Nick Fury's desk at SHIELD in Captain Marvel's end-credits scene.

Erik Selvig Is Recruited To Examine The Tesseract In Thor

Erik Selvig in The Avengers

The Tesseract appeared in Thor, a movie generally believed to be set in 2011; its existence was first teased in a book on Norse mythology, which showed an old sketch of Odin using it. The post-credit scene saw Nick Fury recruit Erik Selvig to Project PEGASUS, revealing the Tesseract to him. Unknown to Fury, Selvig was under the influence of Loki, who immediately realized he had just discovered something very powerful indeed. According to the tie-in comic Fury's Big Week, SHIELD had been trying to tap into the power of the Tesseract for years - probably ever since the events of Captain Marvel - but had been unable to figure out how to extract Tesseract energy. Under the influence of Loki, Selvig began to succeed where SHIELD had failed.

The Tesseract Drove Events In The Avengers

Loki with the Tesseract in The Avengers

At the end of Thor, Thor: Ragnarok, when Loki once again stole it.

Thanos Acquired The Infinity Stone In Avengers: Infinity War

Loki Tesseract

This proved to be a fatal mistake for Loki because the Tesseract drew the attention of Thanos. used the Space Stone to turn Bruce Banner intangible.

Related: Every Time Thanos Used The Infinity Stones In Avengers: Infinity War

Ultimately, Thanos succeeded in his insane mission. He collected all the Infinity Stones and combined their power to destroy half the life in the universe. As revealed in Avengers: Endgame, he then destroyed the Infinity Stones, believing that would prevent anyone from reversing what he had done. Fortunately for the cosmos, the Avengers used time travel to retrieve the Tesseract from elsewhere in the timeline and achieved the impossible.

A New Tesseract Timeline Has Been Created For Loki

Loki grabs the Tesseract in Avengers Endgame

The Avengers' time travel exploits unwittingly created a new timeline, one in which Loki escaped immediately after the Battle of New York - with the Tesseract in his possession. This branched timeline was explored in the Disney+ Infinity Stones don't work in the TVA. In the comics, Infinity Stones only work in the timeline they originated from, losing their power if they are transported to other timelines or planes of existence. The same is likely true in the MCU, explaining why Infinity Stones were nothing more than paperweights to the TVA.

Marvel's What If...? Introduced Another Tesseract Timeline

Captain Carter Tesseract What If

The first episode of possibly Shuma-Gorath, one of the Elder Gods). Captain Carter forced the creature back into the portal, which closed behind her.

In a rather appropriate twist, seventy years later, scientists succeeded in opening the Tesseract portal and freeing Captain Carter. It seems the Tesseract's wormholes can travel through time, which makes sense since wormholes connect one point in spacetime with another. Given some time did for Captain Carter in the wormhole, she didn't emerge in exactly the same posture as when she jumped in, meaning there was some sort of experience of time. It's unknown whether the Tesseract can be used to travel to the past as well as to the future or whether its power allows for wormholes to link branched timelines in the Marvel Cinematic Universe.

More: Marvel Is Retconning The Tesseract (Again)?