Our study aimed to compare key aspects of the food environment in two low-income areas in the city of Campinas, São Paulo State, Brazil: one with low and the other with high prevalence of obesity. We compared the availability of retail food establishments, the types of food sold, and the residents' eating habits. Demographic and socioeconomic data and eating habits were obtained from a population-based health survey. We also analyzed local food environment data collected from remote mapping of the retail food establishments and audit of the foods sold. For comparison purposes, the areas were selected according to obesity prevalence (body mass index - BMI ≥ 30kg/m²), defined as low prevalence (< 25%) and high prevalence (> 45%). Only 18 out of the 150 points of sale for food products sold fruits and vegetables across the areas. Areas with high obesity prevalence had more grocery stores and shops specialized in fruits and vegetables, as well as more supermarkets that sold fruits and vegetables. With less schooling, residents in the areas with high obesity prevalence reported purchasing food more often in supermarket chains and specialized shops with fruits and vegetables, although they consumed more sodas when compared with residents of areas with low obesity prevalence. Our results suggest interventions in low-income areas should consider the diverse environmental contexts and the interaction between schooling and food purchase behaviors in settings less prone to healthy eating.