The course of the Adour was changed in 1578 by dredging under the direction of Louis de Foix, and the river returned to its former mouth. Bayonne flourished after regaining the maritime trade that it had lost for more than a hundred years. In the 17th century the city was fortified by Vauban, whose works were followed as models of defense for 100 years. In 1814 Bayonne and its surroundings were the scene of fighting between the Napoleonic troops and the Spanish-Anglo-Portuguese coalition led by the Duke of Wellington. It was the last time the city was under siege.