The lasting emotional bond that an infant forms with a caregiver is called attachment.
The attachments gives a sense of security and it influences the ability to form stable relationships throughout life.
The dynamics of long-term and short-term interpersonal relationships between humans is described with the psychological model called attachment theory.