We present the rational synthesis of nanoporous CuS for the first time by chemical dealloying method. The morphologies of the CuS catalysts are controlled by the composition of the original amorphous alloys. Nanoporous Cu2S is firstly formed during the chemical dealloying process, and then the Cu2S transforms into CuS. The nanoporous CuS exhibits excellent photocatalytic activity for the degradation of the methylene blue (MB), methyl orange (MO) and rhodamine B (RhB). The excellent photocatalytic activity of the nanoporous CuS is mainly attributed to the large specific surface area, high adsorbing capacity of dyes and low recombination of the photo generated electrons and holes. In the photo degradation process, both chemical and photo generated hydroxyl radicals are generated. The hydroxyl radicals are favor in the oxidation of the dye molecules. The present modified dealloying method may be extended for the preparation of other porous metal sulfide nanostructures.