Halogenated alkylsulfonanilide derivatives shown in formula (I): {wherein R1 represents haloalkyl; R2 represents H, alkylcarbonyl, optionally substituted phenylcarbonyl, alkoxycarbonyl, optionally substituted phenoxycarbonyl, Optionally substituted benzenesulfonyl and the like; R3 and R4 each represent H, alkyl, cycloalkyl, halogen, CN, etc.; R5, R6, R7 and R8 each represent H, halogen, alkyl, cycloalkyl, any Optionally substituted phenyl (C1-6 alkyl), optionally substituted heterocycle, etc.; A and W each represent O or S; and X represents 1-4 each selected from H, halogen, alkyl, alkenyl , optionally substituted phenyl, optionally substituted phenylalkylaminocarbonyl, OH, CN, etc.} and salts thereof; and herbicides containing any one of the aforementioned compounds as an active ingredient. The herbicide has excellent broad applicability, persistence and selectivity to crops, and is effective against various weeds. In particular, it can be excellently used as a herbicide for paddy fields.