Aim: The aim of the study was to evaluate the prevalence of dental pain in preschool children and its association with socioeconomic, demographic, clinical, and behavior variables. Subjects and Methods: The study was nested in a population-based birth cohort from Pelotas, Brazil, started in 2004. A sample of 1,129 children aged 5 years was dentally examined, and their mothers were interviewed. Exploratory variables included demographics, socioeconomic status, mothers’ oral health status and associated behaviors, and caries in primary teeth. Data were analyzed using multivariable Poisson regression. Results: The prevalence of dental pain was 16.5% (95% CI: 14.4–18.8). Multivariate analysis showed that dark-skinned children (prevalence ratio, PR = 1.6, 95% CI: 1.1–2.4) from low socioeconomic level (PR 1.9, 1.2–3.0) whose mothers had less than 4 years of education (PR 1.9, 1.0–3.6), from mothers with less than 10 teeth in at least one arch (PR 1.7, 1.2–2.5) and less than 10 in two arches (PR 1.6, 1.0–2.6), and those with high caries prevalence at the age of 5 years (PR 4.8, 3.3–7.1) were more likely to experience dental pain. Conclusions: Unrestored caries is the main factor associated with dental pain in childhood. Socioeconomic aspects and family context in which dental pain occurs should also be taken into account when dental pain preventive measures are implemented.