The terms of the treaty established peace and a military alliance between Vietnam and France. Vietnam ceded to France the three provinces south and east of the
Mekong that had been occupied by France since 1867. They were incorporated into the French colony of
Cochinchina. The
Red River was opened to international trade, as were the ports of Hanoi,
Haiphong and
Qui Nhơn. The French were permitted to post a consul in each of these ports as well as in
Huế, the capital of the Nguyễn. In exchange, the French waived the remainder of the war indemnity imposed by the
Treaty of Saigon that ended the
Cochinchina Campaign in 1862. They also gave Vietnam five ships with cannons and rifles. The most important terms of the treaty seem to have been understood differently by the parties. France recognized "the sovereignty of the king of Annam and his complete independence from any foreign power" (''la souveraineté du roi d'Annam et son entière independence vis-à-vis de toute puissance étrangère''). The foreign power in view was
China, of which Vietnam was a
tributary. France also offered to provide military assistance against any enemy if Vietnam requested, in exchange for which Vietnam would conform its foreign policy to that of France. Taken together, these terms amounted to Vietnamese renunciation of Chinese
suzerainty and acceptance of a French protectorate, although the latter term was not used. Neither Vietnam nor China appears to have understood these terms in this way. Neither did France seek to take advantage of them before 1879. ==Impact==