The invention provides a compound containing a disulfide bond and its use and preparation method. The general structural formula of the compound is: . Wherein, said A is a substituted or unsubstituted hydrophilic monosaccharide group, oligosaccharide group, or ammonium ammonium salt group, and said B is a hydrophobic aliphatic group within 40 carbon atoms. In the present invention, by introducing a disulfide bond at the corresponding position of the small molecule, it not only retains the film dissolution and protein stabilization effect equivalent to or even better than that of the original detergent, but also can completely realize the In situ degradation, degraded into two thiol fragments, losing the properties of surfactants. With the aid of the compound, it can be used to prepare and study membrane proteins.