Reasons For Allah's Punishment On Previous Nations
They were destroyed for denying the truth conveyed to them evidently by a Rasool. This is called Itmam e Hujjat. The completion of the proof of truth. The principle verse in this regard, repeated again and again to tell the reason of their destruction is Takzeeb e Ayaat, denying the signs. . This was their behaviour which let them meet their fate. Their other vices mentioned like homosexuality or short measuring were outcomes of their behaviour.