In 1896, elderly brother and sister Matthew and Marilla Cuthbert (who live together as they never married) decide to adopt an orphan boy to help out around their ancestral farm of Green Gables, on the outskirts of the Canadian town of Avonlea, Prince Edward Island. When Matthew goes to pick the child up at the railway station, he finds 13-year-old Anne Shirley, an imaginative, bright, high-spirited, and talkative girl, instead. Anne was orphaned when her parents died when she was a few months old, and lived as a servant in various households before being placed in an orphanage.
While Matthew decides he would like her to stay, Marilla does not trust Anne, given her status as an unknown orphan and the perceived uselessness of a young girl. Her distrust appears confirmed when Marilla cannot locate a brooch, thus leading her to believe that Anne is a thief. The Cuthberts send her away, thus "returning" her to the orphanage. While she does arrive back at the orphanage, she is terrified to enter, haunted by the bullying she had endured there, and returns to the train station. Meanwhile, Marilla discovers that the brooch had been misplaced rather than stolen and that discovery leads her to understand that Anne is not a thief. Matthew consequently finds Anne and convinces her to return to Green Gables, where she is officially made part of their family. However, Anne continues to face bullying from students in the Avonlea school and class-based discrimination from Diana's parents and others in the community. Anne once again returns and attempts to gain acceptance by the rest of Avonlea, using her survival mechanisms of intelligence, problem-solving abilities, and imagination.