We propose a mechanical and computational model to describe the coupled problem of poromechanics and cracking in variably saturated porous media. A classical poromechanical formulation is adopted and coupled with a phase-field formulation for the fracture problem. The latter has the advantage of being able to reproduce arbitrarily complex crack paths without introducing discontinuities on a fixed mesh. The obtained simulation results show good qualitative agreement with desiccation experiments on soils from the literature.