Therefore We inflicted punishment on them; and (the ruins of) both their cities (-the city of Sodomites and the city of Aikah) lie indeed on the open highway (traversed by the caravans from Hijâz to Syria).
Meaning:-
Inflict: cause (something unpleasant or painful) to be suffered by someone or something.
Ruin: destroy.