An object of the present invention is to provide a production method of an intermediate used in the production method of a sulfonylpyrrole compound useful as a pharmaceutical product. The present invention relates to a method of producing sulfonylpyrrole compound (VI) by reacting a pyridine-3-sulfonic acid compound with phosphorus pentachloride in a solvent of chlorobenzene or trifluoromethylbenzene to give a pyridine-3-sulfonyl chloride compound, reacting the compound without isolation with compound (III) to give compound (IV), and subjecting the compound (IV) to a reductive amination reaction.wherein R2 is a hydrocarbon group etc. and R3 and R4 are each a hydrogen atom etc.,wherein R1 is an optionally substituted pyridin-3-yl group, and the other symbols are as defined above,wherein R5 is an alkyl group and the other symbols are as defined above.