A water-based composition for treating copper or copper alloy surface for lead-free soldering, the composition comprising a compound represented by general formula (1):