Stockport County Borough was created by the Municipal Corporations Act 1835 when the existing Borough of Stockport was reformed as a municipal borough. Until 1835 the town was governed by a charter dating from circa 1220 granted by Ranulph de Blondeville, 4th Earl of Chester. The municipal borough consisted of parts of Cheshire, namely the township of Stockport and the neighbouring areas of Edgeley and Portwood and part of Heaton Norris in Lancashire.