The invention relates to ceramide dimers in which the amino alcohols are linked together by amide bonds via a dicarboxylic acid. The dicarboxylic acids have at least one sulfur atom in the chain. The invention also relates to a method for producing the ceramide dimers. The ceramide dimers are used as active ingredients to stabilize the skin barrier in cosmetic and pharmaceutical preparations.