"
A walled enclave within this city was constructed in 1639 and contains the "moonlit square." This city was the capital of a ruler who defeated Maldeo Rathore at the Battle of Sammel. The Prithviraj Raso describes the founding of this city by the Tomara dynasty, as well as describing the legend of a Chauhan ruler of this city. That ruler was captured by the Ghorid ruler Mu'izz ad-Din, one of whose slaves conquered this city and ordered the construction of the Quwwat al-Islam Mosque. That slave was Qutb ud-Din Aibak. An invasion by the Chagatai Khanate was repulsed by Alauddin, a member of the (*) Khilji dynasty that governed from this city. This city's control by Ibrahim Lodi came to an end following the Battle of Panipat, after which Babur occupied this city and made it his capital. For 10 points, name this namesake of a series of Northern Indian sultanates and capital of the Mughal Empire.
A walled enclave within this city was constructed in 1639 and contains the "moonlit square.
Delhi [do not accept or prompt on "New Delhi"]