The aim of this study was to evaluate the effect of 2% chlorhexidine digluconate (CHX) on immediate bond strength of etch-and-rinse adhesive to sound (SD) and caries-affected (CAD) primary dentin compared with permanent dentin. Flat dentin surfaces from 20 primary molars (Pri) and 20 permanent molars (Perm) were assigned to 8 experimental groups (n=5) according to tooth type (Pri or Perm), dentin condition (SD or CAD - pH-cycling for 14 days) and treatment (control - C or 60 s application of 2% CHX solution after acid etching - CHX). The bonding system (Adper Single Bond 2) was applied according to manufacturer's instructions followed by resin composite application (Filtek Z250). After 24 h water storage, specimens with cross-section area of 0.8 mm² were prepared for being tested under microtensile test (1 mm/min). Data were submitted to ANOVA and Tukey's post hoc test (α=0.05). Failure mode was evaluated using a stereomicroscope at ×400. Treatment with CHX did not result in higher bond strength values than no pre-treatment (C groups), independently of tooth type. Primary teeth and caries-affected dentin showed significantly lower (p<0.05) bond strength means compared with permanent teeth and sound dentin, respectively. Predominance of adhesive/mixed failure was observed for all groups. CHX did not influence the immediate bond strength to sound or caries-affected dentin of primary and permanent teeth.