In 1859, the French started the conquest of Cochinchina and attacked Gia Định.
In 1862, Emperor Tự Đức's court signed the Treaty of Saigon, which ceded three southern provinces to become the colony of Cochinchina.