Mood is generally created through several different things. Setting, which provides the physical location of the story, is used in order to create a background in which the story takes place. Different settings can affect the mood of a story differently and usually supports or conflicts with the other content of the story in some way.
Rosie the riveter impacted women in WW2 because she encouraged women to work in factories such as munitions. Women volunteered to work on their own behalf. After the War many women went back to traditional roles.