it became more serious in 1808, when france and its ally spain came into disagreement, and became enemies. france attacked and invaded spain, and napoleon made his brother joseph bonaparte its king. general sir arthur wellesley, later arthur wellesley, 1st duke of wellington, became famous in the war. the war lasted until certain european states joined together in the sixth coalition and defeated napoleon in 1814, invading southern france as far north as toulouse.