In the Middle Ages, the town of Žrnov or Avalski Grad (Avala town) was located on top of Avala. In 1442. it was conquered by the Ottoman Empire, which built a new town in Žrnov's place as a counter-fortress to the Belgrade city fort, and renamed it havale, which originally comes from Arabic and means obstacle or shelter.