Wood is a well-used building material where the capacity of wood to absorb water leads to swelling and reduced mechanical properties, and also to questions of durability. The origin of the hygroscopic behavior of wood lies at the nanoscale material that composes its cell walls. Using atomistic modeling, we study the hygromechanical behavior of the different polymeric components of wood, separately and in aggregate configurations. We report the coupled effects of water sorption on the hygric and mechanical properties of the S2 cell wall layer and we upscale the findings using a poromechanical framework.