Towns and cities were important economic centers in medieval Europe, and many of them were granted charters by the lords.