With continuing evolution of imaging techniques from medical applications and materials science, non-destructive imaging experiments have also become an important method to investigate soil specimens. Amongst other methods, computed tomography (CT) has developed to a tool to visualise and better understand the microstructure of different soils based on 3D image data. Furthermore, the acquisition of a temporal series of CT images allows to study processes in soils on the microscale, e. g., during mechanical loading. In order to study the hydraulic and mechanical behaviour of unsaturated granular soils, we combine different custom-built miniaturised experimental set-ups with geomechanics background with computed tomography, yielding so-called in situ CT experiments. By means of image reconstruction and further image analysis based on segmented CT images acquired during different hydraulic and mechanical experiments, we study the drainage and imbibition process as well as the shear process of unsaturated sand and glass bead specimens on the pore or grain scale. The analysis of data on the microscopic level, including the phase distribution, interfacial areas, contact lines as well as radii of curvature of capillary menisci, allows to obtain insights into the macroscopic water retention behaviour and shear behaviour of granular soils.