Complex sentence: At the end of the 17th century, Spain was an ailing empire, facing declining revenues and the loss of military power, ruled by a weak king, Charles II of Spain, who left no successor.
Split into simpler sentences: At the end of the 17th century, Spain was an ailing empire facing declining revenues and the loss of military power. It was ruled by a weak King, Charles II of Spain, who left no successor.