In the 12th century, King Anand Dev Malla built the city. Until the 15th century AD, Bhaktapur served as the Greater Malla Kingdom’s administrative center in the Kathmandu Valley. The then-Malla monarchs erected many of Bhaktapur’s most important monuments.