A "sapinda marriage" is defined under Hindu law as the marriage of two people who are regarded as close relatives by their ancestry. On both the paternal (5 generations) and maternal (3 generations) sides, it is usually restricted to certain generations. The goals of these limitations are to protect genetic risks and maintain family ties.