In law and in cultural anthropology, affinity, as distinguished from consanguinity (blood relationship), is the kinship relationship that exists between two or more people as a result of somebody's marriage. It is the relationship which each party to a marriage has to the relations of the other partner to the marriage; but does not cover the marital relationship of the parties to the marriage themselves. Though laws vary considerably, affinity does not always cease with the death of one of the marriage partners through whom affinity is traced, nor with the divorce of the marriage partners. In addition to kinship by marriage, "affinity" can sometimes also include kinship by adoption and step relationship.
In English, affinity is usually signified by adding "-in-law" to the degree of kinship. This can also be applied to an uncle-in-law, aunt-in-law, niece-in-law or nephew-in-law.
In law, affinity may be relevant in relation to prohibitions on incestuous sexual relations and in relation to whether particular couples are prohibited from marrying.