 In 1831, the Nguyễn emperor Minh Mạng renamed it Hà Nội (, "Between Rivers" or "River Interior").Hanoi was occupied by the French in 1873 and passed to them ten years later.As Hanoï, it was located in the protectorate of Tonkin became the capital of French Indochina after 1887.