With the occupation by Napoleon, Portugal began a slow but inexorable decline that lasted until the 20th century