Nagarkot or Knagra fort was invaded by Mahmud Ghazani in the year