According to one embodiment, An actinic-ray- or radiation-sensitive resin composition comprises a basic compound (C) having n basic groups and m groups that when exposed to actinic rays or radiation, generate an acid, provided that n and m satisfy the relationships n≧1, m≧2 and n