text: Napoleon invaded Spain in March 1808 and invested his older , taller , and more agreeable brother , Joseph , as King Jos ? ? I. On May 2 , 1808 , Madrid rose up against the interloper .
  
  ###
  
  Napoleon 's invasion of Spain proved to be a failure , and the country elected converted its revolutionary forces into a republican government .