The present invention relates to microcapsules comprising one or more biocides such as, in particular, algicides, and at least one melamine-formaldehyde polymer, to a method for the production thereof, and to the use thereof for protecting technical materials.