In 1846, Stang became the most senior civil servant in the newly formed (and no longer existent) Domestic Ministry. He served in this position until 1856, and his tenure was characterized by tireless efforts to modernize Norway's economic infrastructure. In addition to improving the road network, harbors, canals, and lighthouses, he was in great measure responsible for Norway and Scandinavia's first railroad, from Oslo to Eidsvoll. He also worked hard to elevate the importance and function of agriculture in Norway, initiating the formation of a university-level school of agriculture, commissioned travelling agrarians, and encouraged better breeding among Norwegian farm animals.