God gave many chances for Sodom and Gomorrah to repent, but the cities refused.