OBJETIVO: Evaluar la asociación entre la calidad de sueño y adicción al internet en estudiantes de primer a sexto año de la carrera de medicina durante la pandemia por COVID-19. MÉTODOS: Se realizó un estudio transversal analítico. Participaron 405 estudiantes de medicina del primero al sexto año. Se usó la escala de calidad de sueño de Pittsburgh (PSQI), que clasifica a los participantes en aquellos con buena o mala calidad de sueño. La adicción al internet se midió mediante el test de adicción al Internet de Young (TAI) con las categorías de uso promedio de internet, uso problemático de internet y uso adictivo de internet. Se hizo la prueba de Chi2 y un modelo de regresión de Poisson para evaluar la asociación entre ambos. RESULTADOS: El 69,4% de participantes tuvo mala calidad de sueño y el 46,5% presentó un uso problemático/adictivo de internet. El análisis bivariado mostró asociación entre ambas (p<0,001). El modelo de regresión de Poisson mostró asociación entre mala calidad de sueño y uso problemático/adictivo de internet [RP (IC95%): 0,93 (0,89-0,97) (p=0,002)], así como con año académico [RP (IC95%): 1,27 (1,14-1,42) (p<0,001)]. CONCLUSIONES: La mala calidad de sueño estuvo asociada con el uso problemático/adictivo de Internet en estudiantes de medicina. Es importante implementar medidas para promover la higiene de sueño y el uso moderado de internet en los futuros profesionales de la salud.