At the beginning of the Peninsular War, France and Spain signed the Treaty of Fontainebleau in October 1807. This provided for the invasion and subsequent division of Portuguese territory into three kingdoms. Following this, French troops under the command of General Junot entered Portugal, which requested support from the British. In July 1808 troops commanded by the Duke of Wellington, at the time known as Arthur Wellesley, landed in Portugal and defeated French troops at the Battles of Roliça and Vimeiro. This forced Junot to negotiate the Convention of Cintra, which led to the evacuation of the French army from Portugal. In March 1809, Marshal Soult led a new French expedition that advanced south to the city of Porto before being repulsed by Portuguese-British troops and forced to withdraw. After this retreat, Wellesley's forces defeated the French again at the Battle of Talavera.