Joseph Ferdinand, a son of Maximilian II Emanuel, was the favored choice of England and the Netherlands to succeed as the ruler of Spain, and young Charles II of Spain chose him as his heir. Due to the unexpected death of Joseph Ferdinand in 1699 the Wittelsbach did not come to power in Spain, leaving the Spanish Succession uncertain again.