The town was one of the rotten boroughs, returning two Members of Parliament until the Reform Act of 1832: one was Carew Raleigh the son of Sir Walter Raleigh. Haslemere's borough expanded into the surrounding Haslemere parish and recovered with the construction of the Portsmouth Direct Line, which connected Haslemere with London Waterloo and Portsmouth Harbour railway stations. In Victorian Britain Haslemere became a fashionable place to live and continues to be a commuter town for London, and to a lesser extent Portsmouth, served by Haslemere railway station.