Bhaktapur (Nepali: भक्तपुर Bhaktapur ), also Bhadgaon or Khwopa (Nepal Bhasa: ख्वप Khwopa) is an ancient Newar town in the east corner of the Kathmandu Valley, Nepal. It is located in Bhaktapur District in the Bagmati Zone. It is the third largest city in Kathmandu valley and was once the capital of Nepal during the great Malla Kingdom until the second half of the 15th century.