Family (from familia) is a group of people related either by consanguinity (by recognized birth) or affinity (by marriage or other relationship). It forms the basis for social order. The purpose of the family is to maintain the well-being of its members and of society. Ideally, families offer predictability, structure, and safety as members mature and learn to participate in the community. Historically, most human societies use family as the primary locus of attachment, nurturance, and socialization.
Anthropologists classify most family organizations as matrifocal (a mother and her children), patrifocal (a father and his children), conjugal (a married couple with children, also called the nuclear family), avuncular (a man, his sister, and her children), or extended (in addition to parents and children, may include grandparents, aunts, uncles, or cousins).
The field of genealogy aims to trace family lineages through history. The family is also an important economic unit studied in family economics. The word "families" can be used metaphorically to create more inclusive categories such as community, nationhood, and global village.
One of the primary functions of the family involves providing a framework for the production and reproduction of persons biologically and socially. This can occur through the sharing of material substances (such as food); the giving and receiving of care and nurture (nurture kinship); jural rights and obligations; and moral and sentimental ties. Thus, one's experience of one's family shifts over time. From the perspective of children, the family is a "family of orientation": the family serves to locate children socially and plays a major role in their enculturation and socialization. From the point of view of the parent(s), the family is a "family of procreation", the goal of which is to produce, enculturate and socialize children. However, producing children is not the only function of the family; in societies with a sexual division of labor, marriage, and the resulting relationship between two people, it is necessary for the formation of an economically productive household.