Adultery, also called philandery or infidelity, is a form of extramarital sex. It originally referred more specifically to sex between a woman who was married and a person other than her spouse. The term "adultery" for many people carries a moral or religious association, while the term "extramarital sex" is morally or judgmentally neutral.
Adultery is illegal in some countries. The interaction between laws on adultery with those on rape has and does pose particular problems in societies that are especially sensitive to sexual relations by a married woman and men, such as some Muslim countries. The difference between the offenses is that adultery is voluntary, while rape is not.
Historically, adultery has been considered to be a serious offense by many cultures. In some countries, adultery is a crime. However, even in jurisdictions where adultery is not itself a criminal offense, it may still have legal consequences, particularly in divorce cases. For example, where there is fault-based family law, it almost always constitutes grounds for divorce, it may be a factor to consider in a property settlement, it may affect the status of children, the custody of children, etc. Moreover, adultery can result in social ostracism in some parts of the world.