Cobalt(II)-porphyrin complex 1 and 2 catalyses the chlorination and sulfochlorination respectively of n-alkanes and cycloalkanes with sulfurylchloride in benzene. The p-substituent of the benzene ring in the porphyrin complex 1 and 2 shows a remarkable chemoselectivity in these reactions.