England. Portugal and Brazil In October 1807, Spain and France signed a treaty to divide Portugal between them. In November 1807, Smith was appointed to command an expedition to Lisbon, either to assist the Portuguese in resisting the attack or to destroy the Portuguese fleet and blockade the harbour at Lisbon should that be unsuccessful. Smith arranged for the Portuguese fleet to sail for Rio de Janeiro, Brazil, at that time a Portuguese colony. He was involved in planning an attack on the Spanish colonies in South America, in combination with the Portuguese, contrary to his orders, but he was recalled to Britain in 1809 before any of the plans could be carried out. He received much popular acclaim for his actions and was treated as a hero, but the government continued to be suspicious of him, and he was not given any official honours. Smith was promoted to vice admiral on 31 July 1810. In the Royal Navy of the time, promotion from Post Captain to Admiral was automatic and based on seniority, not a specific reward for good service. Later that year in October 1810, he married Caroline Rumbold, the widow of a diplomat, Sir George Rumbold, with whom Smith had worked. Upon safe arrival to Brazil escorting the Portuguese Royal Family, Admiral Smith was awarded by the Prince-Regent John, the Grand Cross of the newly restored Order of the Tower and Sword. Mediterranean again In July 1812, Smith again sailed for the Mediterranean aboard his new flagship, the 74-gun Tremendous. He was appointed as second in command to Vice Admiral Sir Edward Pellew. His task was to blockade Toulon and he transferred his flag to the larger Hibernia, a 110-gun first-rate. The French did not come out of port to confront the British. Early in 1814, the Allies entered Paris and Napoleon abdicated. With the coming of peace and the defeat of Napoleon, Smith began the journey back to England. Peace and Waterloo In March 1815, Napoleon escaped from Elba and gathering his veteran troops marched on Paris where he was reinstated as Emperor of the French. Smith travelling back to England had only reached Brussels by June. Smith, his wife and stepdaughter attended the Duchess of Richmond's ball on night 15/16 June, and three days later, hearing the gunfire of a great battle, he rode out of Brussels and went to meet the Duke of Wellington.