Under the Civil Code, an in-law refers to a blood relative of one's spouse.
The affinity relationship ends upon divorce.
From 姻 (marriage) + 族 (family, tribe). The exact historical derivation is uncertain, but the kanji compound directly conveys the meaning of 'marriage family'.