The term 'Mary Sue' refers to a character archetype prevalent in fanfiction and literature, typically characterized by idealization and lack of significant flaws. It originated as a critique of fan-created characters that often violate established character norms within their narratives, leading to discussions about gender bias in character evaluation and literary standards.