The Quran promotes monogamy as the basis for normal relationships, allowing polygamy only in exceptional circumstances to care for orphans. Polygamy is permitted to marry the mothers of fatherless children or widows after war to provide for them, with a maximum of four wives. However, the Quran emphasizes being fair and just to all wives, and that monogamy is preferred if fairness cannot be guaranteed in a polygamous marriage. It was revealed in a society where polygamy was common but sets restrictions to reduce it.