Imaginary friends (also known as pretend friends or invisible friends) are a psychological and social phenomenon where a friendship or other interpersonal relationship takes place in the imagination rather than external physical reality. Although they may seem very real to their creators, children usually understand that their imaginary friends are not real. The first studies focusing on imaginary friends are believed to have been conducted during the 1890s. There is little information about the development and the appearance of imaginary friends in children. However, Klausen & Passman (2007) report that imaginary companions were originally described as being supernatural creatures and spirits that were thought to connect people with their past lives. Adults in early historic times had entities such as household gods and guardian angels, and muses that functioned as imaginary companions to provide comfort, guidance and inspiration for creative work. Eventually the phenomenon of imaginary companions passed on to children. The era when children began having imaginary friends is unknown, but it is possible the phenomenon appeared in the mid–20th century when childhood was emphasized as an important time to play and imagine.
In some studies, imaginary companions are defined as children impersonating a specific character (imagined by them), or objects or toys that are personified. However, some psychologists will define an imaginary friend only as a separate created character. Imaginary friends or imaginary companions can be people, but they can also take the shape of other characters such as animals or other abstract ideas such as ghosts, monsters or angels. These characters can be created at any point during a lifetime, though Western culture suggests they are most acceptable in preschool- and school-age children. They often function as when played with by a child. They reveal, according to several theories of psychology, a child's anxieties, fears, goals and perceptions of the world through that child's conversations. They are, according to some children, physically indistinguishable from real people, while others say they see their imaginary friends only in their heads, and still others cannot see the friend at all but can sense his/her presence. Most research agrees that girls are more likely than boys to develop imaginary friends. Past research agrees that boys are more likely to participate in fantasy play, and they incorporate the themes of superheroes and adventure in their fantasy play, while girls mostly play dress-up and play house. Once children reach school age, boys and girls are equally likely to have an imaginary companion. Research has often reiterated that there is not a specific "type" of child that creates an imaginary friend.