[deleted]
This older thread has the answers you're looking for, by /u/kieslowskifan and /u/ONeill94.
https://www.reddit.com/r/AskHistorians/comments/3cb9iz/why_did_napoleon_try_to_seize_control_of_spain/