Alrekstad (Norwegian:Kongsgården på Alrekstad, Old Norse: Álreksstaðir) was one of the largest royal estates on the west coast of Norway during the early Middle Ages.
Alrekstad was situated at the foot of Ulriken, the highest of the Seven Mountains (de syv fjell) that surround Bergen, Norway. King Harald Hairfair took residence there in the 10th century. Snorre mentions Alrekstad among the five farms where Harold Fairhair remained mostly in his later years. After the Battle of Fitjar in 960, King Håkon the Good was on his way to Alrek, but died at Håkonshella in Laksevåg.
At times the estate was the home of King Eric Bloodaxe, Bloodaxe's children, and King Haakon I. Later King Olaf III, the founder of Bergen, ruled the city from Alrekstad for 26 years. These early kings moved the court and the royal court to the royal residence. From these estates were ruled kingdom.
Alrekstad lost its importance when King Eystein I of Norway moved his seat to Holmen in Bergen, located within the city limits. The king's estate was later moved down closer to the sea when Håkonshallen was built. In 1277, King Magnus Lagabøte bequeathed Alrekstad to the Monastery of Nonneseter.
The parish of Aarstad existed for centuries before the creation of the municipality of Aarstad in 1838. The municipality and parish of Aarstad (later spelled Årstad) was named after Alrekstad.
According to the Norwegian Place Name Encyclopedia (Norsk Stadnamnleksikon) the name Álreksstaðir is derived from the place name Ulriken. The name Ulriken probably came from Old Norse Alrekr, meaning the towering.