Complex sentence: Shifting sands and coastal erosion led to the buildings being abandoned in 2002 which had been used as a museum and coffee shop.
Split into simpler sentences: Shifting sands and coastal erosion led to the buildings being abandoned in 2002. Prior to their abandonment, the buildings had been used as a museum and coffee shop.