Complex sentence: In 1487, Mijas resisted the attacks of the Catholic Monarchs as long as the siege of Málaga lasted; after Málaga fell, the inhabitants surrendered and most were sold as slaves.
Split into simpler sentences: In 1487, Mijas resisted the attacks of the Catholic Monarchs during the siege of Málaga. After Málaga fell, the inhabitants surrendered and most were sold as slaves.