Several factors related to the immune system, such as a history of allergies and virus infections, may be associated with acute lymphoblastic leukemia (ALL). The purpose of this study was to analyze whether the presence of atopic diseases and previous infection with parvovirus B19 and Epstein-Barr virus (EBV) are associated with the development of ALL. This case-control study was performed in two tertiary hospitals located in northeastern Brazil. The study population included 60 patients who were diagnosed with non-T-cell ALL using myelogram and immunophenotyping and 120 patients in the control group. Atopy was evaluated via a parent questionnaire and medical records. Total immunoglobulin (Ig)E and IgG levels of parvovirus B19 and EBV were measured in the serum. Logistic regression was performed to assess the association between variables and odds of ALL. We identified a significant inverse association between rhinitis, urticaria and elevated IgE serum levels with ALL. A history of parvovirus B19 infection showed a significant association with this type of cancer [OR (95 % CI) 2.00 (1.94-4.26); P = 0.050]. In logistic regression, the presence of atopy was a protective factor [OR (95 % CI) 0.57 (0.38-0.83); P = 0.004], and the presence of IgG for parvovirus B19 was an important risk factor for ALL [OR (95 % CI) 2.20 (1.02-4.76); P = 0.043]. These results suggest that atopic diseases and elevated total IgE levels are associated with a potential protective effect on the development of ALL. Previous infection with parvovirus B19 contributed to ALL susceptibility.