In law, a prohibited degree of kinship refers to a degree of consanguinity (blood relatedness) and sometimes affinity (relation by marriage or sexual relationship) between persons that results in certain actions between them being illegal. Two major examples of prohibited degrees are found in incest and nepotism. Incest refers to sexual relations and marriage between closely related individuals; nepotism is the preference of blood-relations in the distribution of a rank or office.