Question: Why Did Napoleon Not Invade Portugal?

Which country did Napoleon invade but was unsuccessful in conquering?

.

Why did Napoleon invade Portugal?

Has Portugal ever been invaded?