A man and a woman who committed adultery got married. Is their marriage valid?

Yes, if they have repented their earlier action. God says in the Qur’an:

“The adulterer couples with none other than an adulteress or an idolatress; and with the adulteress couples none other than an adulterer or an idolater. This is forbidden to the believers.” (Light — “An-Noor” 24: 3)

This means that those who are habitual adulterers or who take adultery lightly, considering it in a casual light cannot marry believing men or women. Believers must not associate with such people or marry them. This is in line with the serious approach Islam adopts to marriage. A marital relationship opens the way to establish a family, while adultery ruins marriages and destroys families. It is strictly forbidden in Islam and cannot be viewed as a prelude to marriage.

However, if a man and a woman who have committed adultery repent of their sin, resolving not to commit it again, they are acceptable as marriage partners. Repentance is always available for those who have committed a sin to mend their ways and seek God’s forgiveness. When they repent with sincerity, God will forgive them if He so pleases.