In the early 13th century, particularly under Wolfger von Erla (1204–1218) and Berthold (1218–1251), the Patriarchate had a flourishing industry and commerce, favoured by a good road network, as well as a notable cultural activity. Damaged by earthquakes and other calamities, and reduced to a few hundred inhabitants, Aquileia was nearly abandoned in the 14th century. The capital of the state was moved first to Cividale and then, from 1238, to Udine, in central Friuli, which had been a favourite residence of the patriarch since the 13th century and soon became a large city.