An actinic ray-sensitive or radiation-sensitive resin composition comprising: a compound represented by the following formula, a resin which is alkali-insoluble or sparingly alkali-soluble and becomes easily alkali-soluble in the presence of an acid, and a compound capable of generating an acid upon irradiation with an actinic ray or radiation: wherein A represents a monovalent substituent, X represents a single bond or a divalent linking group, W represents a lactone ring-containing group or a group represented by any one of formulae to, m represents an integer of 0 or more, n represents an integer of 1 or more, and when a plurality of A's, X's or W's are present, each A, X or W may be the same as or different from every other A, X or W, a plurality of compounds represented by formula may be combined through at least any one of a single bond, A and W: S-H wherein Z represents a single bond or a divalent linking group, each of Ra, Rb and Rc independently represents a hydrogen atom, an alkyl group, a cycloalkyl group or an alkenyl group, Rd represents an alkyl group, a cycloalkyl group or an alkenyl group, and two groups out of Ra, Rb and Rc or two groups out of Ra, Rb and Rd may combine to form a ring structure comprising a carbon atom or may form a ring structure comprising a carbon atom and further containing a heteroatom. a compound represented by the following formula, a resin which is alkali-insoluble or sparingly alkali-soluble and becomes easily alkali-soluble in the presence of an acid, and a compound capable of generating an acid upon irradiation with an actinic ray or radiation: wherein A represents a monovalent substituent, X represents a single bond or a divalent linking group, W represents a lactone ring-containing group or a group represented by any one of formulae to, m represents an integer of 0 or more, n represents an integer of 1 or more, and when a plurality of A's, X's or W's are present, each A, X or W may be the same as or different from every other A, X or W, a plurality of compounds represented by formula may be combined through at least any one of a single bond, A and W: S-H wherein Z represents a single bond or a divalent linking group, each of Ra, Rb and Rc independently represents a hydrogen atom, an alkyl group, a cycloalkyl group or an alkenyl group, Rd represents an alkyl group, a cycloalkyl group or an alkenyl group, and two groups out of Ra, Rb and Rc or two groups out of Ra, Rb and Rd may combine to form a ring structure comprising a carbon atom or may form a ring structure comprising a carbon atom and further containing a heteroatom. wherein A represents a monovalent substituent, X represents a single bond or a divalent linking group, W represents a lactone ring-containing group or a group represented by any one of formulae to, m represents an integer of 0 or more, n represents an integer of 1 or more, and when a plurality of A's, X's or W's are present, each A, X or W may be the same as or different from every other A, X or W, a plurality of compounds represented by formula may be combined through at least any one of a single bond, A and W: S-H wherein Z represents a single bond or a divalent linking group, each of Ra, Rb and Rc independently represents a hydrogen atom, an alkyl group, a cycloalkyl group or an alkenyl group, Rd represents an alkyl group, a cycloalkyl group or an alkenyl group, and two groups out of Ra, Rb and Rc or two groups out of Ra, Rb and Rd may combine to form a ring structure comprising a carbon atom or may form a ring structure comprising a carbon atom and further containing a heteroatom.