People were here long before any state. Remains found in the caves trace a human presence back some 30,000 years. The narrow caves and waterways also made a natural fortress for a citadel.
In 968 an independent Vietnamese polity called Dai Co Viet was founded, and Hoa Lu became its economic, political and cultural centre. The Dinh dynasty ruled from here until 980, then the Le dynasty until 1009. The city was never directly attacked.
Little of that capital survives. What stands at Hoa Lu now are temples to the Dinh and Le kings and a tomb on a hill, built from the 1600s on. So you visit it to understand the setting, not to see palaces.
Catholicism arrived early in Kim Son, southwest of the city. Portuguese priests were there by 1627, and Phat Diem Cathedral was completed in 1891. It is worth a trip for its scale and its oriental style.
The name Ninh Binh has been official since 1822. In the 1880s the French cared about the city because guns in its high citadel controlled river traffic towards the Gulf of Tonkin. They took the citadel without resistance in November 1883 and put a garrison in it.
UNESCO lists the Trang An complex as World Heritage for both its nature and its culture. In 2017 the film Kong: Skull Island was shot here, and one set became an outdoor museum in 2024. On 1 January 2025 the city and Hoa Lu district merged into Hoa Lu city.