We identified significant selection signatures in myopia-associated genes related to sunlight, including RHO, TSPAN10, and MED1, and we validated the interaction between these genes and the light environment. Here, TSPAN10 is linked to myopia.