Brighton emerged as a health resort during the 18th century and became a destination for day-trippers after the arrival of the railway in 1841. In 1845 a floating breakwater was constructed to protect the Chain Pier. However, it was only in place for a year before being towed away - but this didn't stop tourists to Brighton. In 1848 it was estimated that 250,000 people visited the town. One of the attractions, both then and now, was the Royal Pavilion which was purchased by the town for £53,000 in 1849.