Hans Ulrich von Eggenberg came into the world in June 1568, probably in Graz. His parents were Seyfried von Eggenberg and Anna Benigna, née Galler von Schwanberg, and he was raised a Protestant. From 1583 he studied at the Tübinger Stift, where Johannes Kepler, an acquaintance from Graz, was also educated. In Spanish service he rose to the rank of captain in the Netherlands. After his father died in 1594 he returned to Graz. At the court of Archduke Ferdinand he became cupbearer in 1597 and chamberlain in 1598. In the same year he married Sidonia von Thannhausen in Graz and was raised, together with other members of the family, to the rank of baron. Around 1600 he converted to Catholicism.
From 1602 he was governor (Landeshauptmann) of Carniola, and in 1603 he became a privy councillor and president of the court chamber, in effect finance minister of the archduke's lands. He had been a friend of the future Emperor Ferdinand II since their youth; in 1615 he became his Lord Chamberlain (Obersthofmeister) and president of the Privy Council. During the Thirty Years' War he was among the most influential statesmen of his day. In 1620 King Philip III of Spain made him a Knight of the Golden Fleece. At the end of 1622 he received the lordship of Krumau in southern Bohemia, and in 1623 the rank of Prince of the Empire.
In 1625 the emperor appointed him Gubernator (governor) of Inner Austria. That same year he had his family's medieval seat on the western edge of Graz rebuilt as a splendid palace to plans by Giovanni Pietro de Pomis: today's Schloss Eggenberg. He did not live to see it finished. In 1634 he withdrew from the imperial court, and he died on 18 October 1634 in Laibach. His son Johann Anton I succeeded him as the second Prince of Eggenberg.
