The process by which individuals learn and internalize societal expectations of gender roles and behaviors.