Pedzisa mutsara unotevera: Hanoi yakatanga kare muzana remakore rechitatu B.C.E., apo chikamu cheguta razvino uno chakashanda seguta guru renyika yeVietnam yekare ye Âu Lạc. Kutevera kuparara kwe Âu Lạc, guta iri raive chikamu cheHan China. Muna 1010, mambo weVietnamese Lý Thái Tổ akasimbisa guta guru renyika yeumambo hweVietnamese Đại Việt muzuva ranhasi repakati peHanoi, achitumidza guta iri Thăng Long (zvichitaurwa kuti "Dhiragoni Inokwira"). Thăng Long akaramba ari muzinda wezvematongerwo enyika we Đại Việt kusvikira muna 1802, apo dzinza raNguyễn, dzinza rokupedzisira reumambo hweVietnamese, rakatamisa guta guru kuHuế. Guta racho rakatumidzwazve zita rokuti Hanoi muna 1831, uye rakava guta guru reFrench Indochina kubva muna 1902 kusvika muna 1945. Pana 6 January 1946, National Assembly yeDemocratic Republic of Vietnam yakasarudza Hanoi seguta guru reDemocratic Republic of Vietnam.
nyika ichangobva kuzvimiririra, iyo yaizogara munguva yeHondo yekutanga yeIndochina (1946<unk>1954) uye Hondo yeVietnam (1955<unk>1975). Hanoi rave riri guta guru reSocialist Republic of Vietnam kubvira muna 1976.