Complex sentence: With the failure of that enterprise, he spent nine years in Spain, and hoped to succeed Allen as Cardinal on the latter's death.
Split into simpler sentences: With the failure of that enterprise, he spent nine years in Spain. He had hoped to succeed Allen as Cardinal on the latter's death.