The invention relates to a solar-powered car which has an automatic adjusting function and can prevent light pollution and dazzling. The solar-powered car which has the automatic adjusting function and can prevent light pollution and dazzling comprises a car body and an electricity generation mechanism, wherein the electricity generation mechanism comprises a first photovoltaic panel, two drivingunits and two photovoltaic assemblies; the photovoltaic assemblies comprise supports and second photovoltaic panels; the car body is internally provided with a light weakening mechanism, and the lightweakening mechanism comprises a transverse rod, a sleeve ring, a lifting unit, a translation unit, a light filtering plate and two vertical plates. When the solar-powered car which has the automaticadjusting function and can prevent light pollution and dazzling runs in an urban area, through the driving units, the second photovoltaic panels are driven to rotate towards the first photovoltaic panel, so that light pollution caused by specular reflection is prevented, dazzling feelings of other car drivers are avoided, and then road traffic safety is guaranteed; moreover, through the lifting unit, the light filtering plate is driven to go down to block strong sunlight, and through the translation unit, the horizontal position of the light filtering plate is adjusted, so that a driver has agood sight line, safe driving is guaranteed, and then the practicability of the solar-powered car is improved.