By the First World War, it had been connected by rail with Nice and most of its fortifications had been demolished to make way for new residential districts. In 1926, the old Château Grimaldi was bought by the local municipality and later restored for use as a museum. Pablo Picasso came to the town in 1946, having visited his friend and fellow painter Gerald Murphy and his wife Sara there in 1923, and was invited to stay in the castle. During his six-month stay, Picasso painted and drew, as well as crafting ceramics and tapestries. When he departed, Picasso left a number of his works to the municipality. The castle has since become the Picasso Museum.