• µCT allowed quantifying morphological changes in the region of the sample close to the hydraulic contact. • 3D images permitted detailed analysis of the pore shape and size distribution. • Tortuosity and pore connectivity was affected by wetting and drying cycles. • Soil water retention curve was influenced by wetting and drying cycles.