In 1387 Richard II gave a charter for the foundation of the guild of St Mary and St John the Baptist; this guild functioned as the local government, until its dissolution by Edward VI, who incorporated the town in 1548.