There were numerous factors in this cultural expansion, the most obvious of which was that Charlemagne's uniting of most of Western Europe brought about peace and stability, which set the stage for prosperity. This period marked an economic revival in Western Europe, following the collapse of the Western Roman Empire. Local economies in the West had degenerated into largely subsistence agriculture by the early seventh century, with towns functioning merely as places of gift-exchange for the elite. By the late seventh century, developed urban settlements had emerged, populated mostly by craftsmen, merchants and boaters and boasting street grids, artisanal production as well as regional and long-distance trade. A prime example of this type of emporium was Dorestad.