The objective of this research was to investigate the effects of irrigation with treated wastewater and nitrogen (N) fertilization on the chemical characteristics of a Haplustalf soil cultivated with cotton. An experiment was conducted in a greenhouse in a completely randomized design with four replicates, and arranged in a 5 x 4 factorial. Five doses of N fertilization (0, 45, 90, 135 and 180 kg ha-1) and four sources of irrigation water (freshwater, wastewater treated by an anaerobic reactor, wastewater treated by an anaerobic reactor and post-treated by intermittent sand filter in series, wastewater treated in a septic tank and post-treated by an intermittent sand filter) were tested. Irrigation was daily performed from July 2011 to January 2012 according to the water demand of cotton resulting in a water depth of 620 mm. It was found that, compared with the conventional management with freshwater irrigation, treated wastewater provides greater accumulation of micronutrient, potassium and sodium in the soil, increasing the risk of sodification in irrigated areas.