Bach Ma Temple (Đền Bạch Mã) sits on Hàng Buồm street in the heart of Hanoi's Old Quarter, in what was once Thọ Xương district of Hoài Đức prefecture. It is one of the Thăng Long Tứ Trấn - the four guardian temples believed to protect the old citadel of Thăng Long from each cardinal direction, with Bạch Mã watching over the east, and it holds the smallest footprint of the four.
The temple is dedicated to Long Đỗ, an original tutelary spirit of ancient Hanoi, and by tradition dates back to the 9th century, around the time Cao Biền built the Đại La citadel.
The White Horse Legend
Its most famous association, though, comes from the year 1010, when Lý Thái Tổ moved the capital from Hoa Lư to Thăng Long: according to legend, the new citadel walls kept collapsing during construction, so the king prayed to Long Đỗ for help. A white horse is said to have emerged from the temple, walked a circuit, and left hoofprints on the ground; the king had the wall built along that path, and it held firm from then on - giving rise to the temple's name and its enduring white-horse symbolism.
A related legend from the 10th century tells of Đinh Bộ Lĩnh praying here during his military campaigns and promising to bestow a title on the spirit if he succeeded; after his victory, he is said to have dreamed of a deity identifying itself as Thần Bạch Mã, prompting him to properly honour Long Đỗ with a dedicated shrine.
Restorations and Layout
The temple has been restored several times over the centuries, most significantly during the Chính Hòa era under Lê Hy Tông and again with a major renovation in 1839 (Minh Mệnh's 20th year), and its current buildings reflect Nguyễn-dynasty architectural style, laid out in the shape of the Chinese character 'Tam' (三, 'three'). The complex covers just over 500 square metres, with an eight-roofed Phương Đình pavilion at the front, and inside, a statue of Long Đỗ sits alongside a ceremonial palanquin shaped to evoke the white horse itself - both central to the temple's spiritual focus.