Stranger anxiety is a typical part of the developmental sequence that most children experience. It can occur even if the child is with a caregiver or another person they trust. It peaks from 6 to 12 months but may recur afterwards until the age of 24 months. As a child gets older, stranger anxiety can be a problem as they begin to socialize. Children may become hesitant to play with unfamiliar children.