Bach Ma Temple is believed to be the oldest temple in Hanoi. This Buddhist temple was originally built in the ninth century by King Ly Thai To in honour of Bach Ma. According to a sign inside the temple, originally the site of the temple was Long Do Mountain. The temple was moved to its current location in the Old Quarter of Hanoi in the 18th century, during the Ly Dynasty, to guard the east side of Thang Long.
The translation of Bach Ma is ́White Horse ́ and this refers to a story behind the construction of the Temple. King Ly Thai To had been struggling to build the temple as its walls kept collapsing. It is said that a white horse delineated the best area to build the temple with its hooves to help the king in constructing the temple.
http://www.vietnam-guide.com/hanoi/attractions/bach-ma-temple.htm