Complex sentence: The Spanish discovered a vast amount of pearls in the city's area, which made the city a constant target for pirates.
Split into simpler sentences: The Spanish discovered a vast amount of pearls in this area. Because of the pearls, the city became a constant target for pirates.