Answer
Leopold I wanted to give the entire Spanish inheritance to his younger son Charles, which would have united the Spanish and Austrian Habsburg possessions. This was opposed by France, which feared the rise of a powerful Habsburg empire. The War of the Spanish Succession broke out in 1701, and Charles was eventually defeated.