France occupied Spain for a long time. This made Spain very weak. It also made Spain lose its empire in North and South America; all of the parts of that empire became their own countries, or were taken over by other countries such as the United States of America.