It refers to protection of offspring (tending) and seeking out their social group for mutual defense (befriending).
It involves caring for offspring (parenting) and finding a community to share defense (allying).