The ability of the amphiphilic and biocompatible poly(vinylpyrrolidone) to avoid self-aggregation of the photosensitizer 5,10,15,20-tetrakis(4-sulfonatophenyl)porphyrin in aqueous solution in the presence of the biocompatible polycation chitosan, polymer that induces the dye self-aggregation, is shown. This is related to the tendency of the dye to undergo preferential solvation by the amphiphilic polymer. Importantly, the dispersant ability of this polymer is transferred to the solid state. Thus, aerogels made of the biocompatible polymers chitosan and chondroitin sulfate, and containing the photosensitizer dispersed by the amphiphilic polymer have been synthesized. Production of reactive oxygen species by the aerogel containing the amphiphilic polymer was faster than when the polymer was absent, correlating with the relative concentration of dyes dispersed as monomers. The aerogels presented here constitute low cost biocompatible materials bearing a conventional photosensitizer for photodynamic therapy, easy to produce, store, transport, and manage in clinical practice.