Ağdam (also, Agdam and Aghdam) is a ghost town in the southwestern part of Azerbaijan and the capital of its Agdam Rayon. In July 1993, after heavy fighting, Agdam was captured by the forces of the Nagorno Karabakh Republic during its 1993 summer offensives. As the town fell, its entire population were forced to flee eastwards. Many were killed by Armenian soldiers. In the immediate aftermath of the fighting, the Armenian forces decided to destroy much of Agdam to prevent its recapture by Azerbaijan. More damage occurred in the following decades when the deserted town was looted for building materials. Agdam is currently a ruinous, uninhabited ghost town. The town's large mosque survives intact but in a derelict condition.