In "The Yellow Wallpaper," Charlotte Perkins Gilman explores gender roles through the lens of mental illness and societal oppression. The protagonist's descent into madness mirrors the restrictive norms imposed on women during the 19th century. The wallpaper symbolizes her struggle against patriarchal constraints, highlighting the need for female autonomy and self-expression.