The present invention provides: a composition for forming a
resist underlayer film, the composition being capable of forming a
resist underlayer film that is excellent in terms of
solvent resistance and pattern rectangularity; and a method for producing a
semiconductor substrate. This composition for forming a
resist underlayer film contains a
polymer that has a repeating unit represented by formula (1), and a
solvent. (In formula (1), R1 represents a
hydrogen atom or a substituted or unsubstituted monovalent
hydrocarbon group having 1 to 20 carbon atoms. L1 represents a
single bond or a
divalent linking group. Ar1 represents a monovalent group having an aromatic ring having 6 to 20 ring members. The
hydrogen atom of the aromatic ring is substituted by at least one
halogen atom. Ar1 has at least one group that is selected from the group consisting of groups represented by formulae (2-1) to (2-8).) (In formulae (2-1) to (2-8), * represents a bond with an atom constituting Ar1, and R7 represents a
divalent organic group having 1 to 20 carbon atoms, or a
single bond. In formula (2-1) and formula (2-7), R8, R9 and R10 each independently represent a
hydrogen atom or a monovalent
organic group having 1 to 20 carbon atoms. In formula (2-2), ** represents a bond with an atom constituting Cy. Cy represents a ring structure constituted together with two carbon atoms in the formula and having 3 to 20 ring members. R11 represents a
hydrogen atom, a monovalent
organic group having 1 to 20 carbon atoms, or a bond with **. R12 represents a
hydrogen atom or a monovalent organic group having 1 to 20 carbon atoms. In formula (2-3), R13 represents a
hydrogen atom or a monovalent organic group having 1 to 20 carbon atoms.)