Patan was established by the Chapotkata ruler Vanaraja in 8th century as "Anahilapataka" [REF].
Muhammed's general and later Sultan of Delhi Qutb-ud-din Aybak sacked the city between 1200 and 1210, and it was destroyed by the Allauddin Khilji in 1298.