Objective: To determine the association between caries experience, obesity, and socioeconomic and environmental factors in 2, 5 and 12 years-old schoolchildren. Secondarily, the influence of school infrastructure was assessed. Methods: Primary data from 1762 schoolchildren from the municipality of Cajamar (SP, Brazil) and socioeconomic and environmental secondary data (Brazilian Census 2010, School Census, Prova Brasil/2017) were used. Caries and treatment experience (dmft/DMFT indices), dental occlusion, visible biofilm, weight and height were assessed. Results: Caries experience was found in 6.5%, 40.2% and 46.5% of children at 2, 5 and 12 years, respectively. At 12y, greater caries experience was observed among children financially assisted by the Bolsa Fam�lia governmental program. Excess weight was found in 30%, 35% and 34% at 2, 5 and 12 years. At 2 and 5 years, the highest dental caries indices were associated with disadvantageous socioeconomic indicators (households water supply and sewage system, garbage collection, literate head and income), while overweight was associated with female sex and better socioeconomic aspects. At 12y, the group with obesity was characterized by low dmf+DMFT index and better household aspects, while the group with greater dmf+DMFT index comprised normal-weight children. A correlation between the percentage of caries experience and student/employee ratio of the school was observed. Conclusion: An association between disadvantageous socioeconomic and environmental aspects and dental caries was observed, while obesity was associated with better socioeconomic status of the schoolchildren. While no direct association was found between obesity and dental caries, the results emphasize the influence of socioeconomic/environmental variables on health outcomes. Keywords: Dental Caries, Child, Childhood Obesity, Demographic factors