Endogamous comes from Ancient Greek γάμος through English -gamous, ultimately deriving from Proto-Indo-European ǵem- meaning marriage and h₁én meaning within.
endogamous (English): Taking place within a social group