marriage within one's own tribe or group as required by custom or law
The practice of marrying or requiring to marry within one's own ethnic, religious, or social group.
Endogamy comes from combining the prefix endo- with -gamy, which literally means marriage within a group. It is closely related to the concept of inmarriage.