In sociology, endogamy refers to the practice of marrying within a specific social group, class, or ethnic group, while exogamy is the practice of marrying outside of one's own group. Endogamy often reinforces social cohesion and preserves cultural traditions within a group. Conversely, exogamy can promote diversity and create broader social networks. Both endogamy and exogamy are important concepts in understanding marriage patterns, social stratification, and cultural dynamics within and between societies.