Asgard (meaning "Enclosure of the Aesir"), also known as Ásgarðr, is one of the Nine Worlds of Norse mythology and the home and fortress of the Æsir, one of the two tribes of gods. The other being the Vanir, who have their home in Vanaheim. Asgard is located in the sky, albeit invisibly, and is connected to Midgard, the world of humanity, by the rainbow bridge Bifrost. Asgard is also where Valhalla is located.
The -gard element in Asgard’s name is a reference to the ancient Germanic concept of the distinction between the innangard and utangard. That which is innangard (“inside the fence”) is orderly, law-abiding, and civilized, while that which is utangard (“beyond the fence”) is chaotic, anarchic, and wild. This applies both to the geographical plane and the human psyche; thoughts and actions can be innangard or utangard just as readily as spatial locations. Asgard is the ultimate model of the innangard, while Jotunheim, the “Homeland of the Giants,” is the epitome of the utangard.
Midgard (“Middle Enclosure”), the world of human civilization, is, as the name implies, somewhere in the middle – not quite as innangard as Asgard and not quite as utangard as Jotunheim. But Midgard is a space enclosed, on the geographical plane, by fences, and on the psychological plane by norms and laws. This makes it much closer – at least in theory – to Asgard than to Jotunheim. In other words, Asgard is the divine model upon which the pre-Christian Norse people patterned their world.