The yellow wallpaper serves as a powerful symbol of mental illness and societal constraints in Charlotte Perkins Gilman's short story. Set in the late 19th century, the wallpaper reflects the narrator's deteriorating mental state as she becomes increasingly obsessed with its intricate patterns, representing her struggle for autonomy and self-identity.