Biological microorganisms overcome the Brownian motion at low Reynolds numbers by utilizing symmetry-breaking mechanisms. Inspired by them, various microrobot locomotion methods have been developed at the microscale by breaking the hydrodynamic symmetry. Although the boundary effects have been extensively studied for microswimmers and employed for surface-rolling microrobots, the behavior of microrobots in the proximity of multiple wall-based “confinement” is yet to be elucidated. Here, we study the confinement effect on the motion of surface-rolling microrobots. Our experiments demonstrate that the locomotion efficiency of spherical microrollers drastically decreases in confined spaces due to out-of-plane rotational flows generated during locomotion. Hence, a slender microroller design, generating smaller rotational flows, is shown to outperform spherical microrollers in confined spaces. Our results elucidate the underlying physics of surface rolling-based locomotion in confined spaces and present a design strategy with optimal flow generation for efficient propulsion in such areas, including blood vessels and microchannels.