In tissues, cells have their physical space constrained by neighboring cells and extracellular matrix. In the recent years, we have developed simple and versatile devices to precisely and dynamically control this confinement parameter in cultured cells. I will present results we obtained on the effect of confinement on cell migration focusing on the main parameter limiting cell migration in confinement: the deformation of its nucleus. I will conclude presenting intruiguing results showing that large deformations of migrating cells induce strong damages of their nucleus raising the question of how immune cells such as dendritic cells can combine high motility and long term survival.