Complex sentence: When the gold ran out in the late 18th century, São Paulo shifted to growing sugar cane, which spread through the interior of the Captaincy.
Split into simpler sentences: When the gold ran out in the late 18th century, São Paulo shifted to growing sugar cane. Cultivation of this commodity crop spread through the interior of the Captaincy.