Metal-insulator transition and orbital reconstruction in Mott quantum wells of NdNiO
3By comparing NdNiO$_3$ quantum wells with two different confinement structures, this study shows that the boundary condition of correlated electrons critically determines the many-body ground state. Sandwiching NdNiO$_3$ with LaAlO$_3$ enhances the metal-insulator transition and orbital ordering, while replacing one interface with vacuum suppresses them. Resonant x-ray absorption reveals that the enhanced ordering in the sandwich structure is linked to reduced $e_g$ orbital splitting, which promotes charge ordering.