The present invention relates to a method for preparing a solid dispersion, comprising the steps: a.1) melting of a mixture of at least one drug, at least one carrier and at least one acid, at least one carbonate and/or at least one bicarbonate and optinally at least one surfactant under effervescence of CO 2 or a.2) melting of at least one of the constituents of the mixture according to step a.1) and adding the remaining constituents in arbitrary order under effervescence of CO 2 wherein either the at least one acid or the at least one bicarbonate and/or the at least one carbonate has/ have to be added last b) solidifying the mixture obtained in step a.1 or a.2), preferably by cooling and optionally drying c) comminuting the mixture obtained in step b). a solid dispersion prepared thereby, a pharmaceutical composition containing the solid dispersion as well as the use of the solid dispersion for enhancing the water solubility of drugs.