Some overtures were made by Thailand to establish trade relations with France in 1840 and 1851. In 1856 Napoleon III sent an embassy, led by Charles de Montigny, to King Mongkut. A treaty was signed on 15 August 1856, to facilitate trade, guarantee religious freedom, and grant French warships access to Bangkok. In June 1861, French warships brought a Thai embassy to France, led by Phya Sripipat . In the meantime, France was establishing a foothold in neighbouring Vietnam, putting it on a collision course with Siam. Under the orders of Napoleon III, French gunships under Rigault de Genouilly attacked the port of Da Nang in 1858, causing significant damage, and holding the city for a few months. de Gnouilly sailed south and captured the poorly defended city of Saigon in 1859. From 1859 to 1867, French troops expanded their control over all six provinces on the Mekong delta and formed a French Colony, Cochin China. In 1863, France and King Norodom of Cambodia signed a treaty of protection with France, which transferred the country from Siamese and Vietnamese overlordship to French colonial rule. A new treaty was signed between France and Siam on 15 July 1867.
Question: How many years do these events span?
Answer: 27