This cross-sectional web-based survey of 212 undergraduate medical students in Nepal found that 38.2% had poor sleep quality. Depression, current alcohol use, poor academic achievement, and being a fourth-year student were significant factors associated with poor sleep quality.