The town centre was redesigned after 1807 when George Wansey, from a family of clothiers in Warminster, left £1,000 () to improve the town, provided his money could be matched by local fundraising. The amount raised was spent on demolishing houses to widen roads. In 1851, a railway line from Westbury was opened, and then in 1856 the line was continued to Salisbury. The railway had a devastating effect on the town's market, which fell away almost to nothing; the shops and inns lost most of their business, and the local industries declined.