The aim of this study was to develop a preparation method of porous chitosan structures, in the electrolysis of the chitosan solution in acetic acid. Chitosan in aqueous acetic acid is a polyelectrolyte. During the constant flow of electric current through this system, pure chitosan begins to accumulate on an anode, in the form of porous hydrogel layers. The addition of hydroxyapatite (HAp) to the electrolyte enhances the process and allows for obtaining spatially arranged complex structures of chitosan.