A process for preparing (meth)acrylates of N-hydroxyalkylated amides, in which cyclic N-hydroxyalkylated amides or open-chain N-hydroxyalkylated amides where Z 1 is oxygen, sulfur, unsubstituted or substituted phosphorus or mono- or unsubstituted nitrogen (N-R 3), R 1 and R 2 are each independently C 2 -C 20 -alkylene, C 5 -C 12 -cycloalkylene, C 6 -C 12 -arylene, or C 2 -C 20 -alkylene interrupted by one or more oxygen and/or sulfur atoms and/or one or more substituted or unsubstituted imino groups and/or by one or more cycloalkyl, - -,-O O-, - O-, -O -, -O - or - O-groups, where the radicals mentioned may each be substituted by aryl, alkyl, aryloxy, alkyloxy, heteroatoms and/or heterocycles, or R 2 -OH is a group of the formula -[X i] k -H, R 3, R 4 and R 5 are each independently hydrogen, C 1 -C 18 -alkyl, or C 2 - C 18 -alkyl, C 2 - C 18 -alkenyl, C 6 -C 12 -aryl, C 5 - C 12 -cycloalkyl which are each optionally interrupted by one or more oxygen and/or sulfur atoms and/or one or more substituted or unsubstituted imino groups, or a five- to six-membered heterocycle having oxygen, nitrogen and/or sulfur atoms, where the radicals mentioned may each be substituted by aryl, alkyl, aryloxy, alkyloxy, heteroatoms and/or heterocycles, and R 3 and R 5 may also together form a five- to twelve-membered ring, with the proviso that, in the case that Z 1 = 0, R 5 is only unsubstituted C 1 - C 18 -alkyl, C 6 - C 12 -aryl or C 5 -C 12 -cycloalkyl, kis a number from 1 to 50 and X i for each i = 1 to k may independently be selected from the group of -CH 2 -CH 2 -O-, -CH 2 -CH 2 -N -, -CH 2 -CH 2 -CH 2 -N -, -CH 2 -CH(NH 2)-, -CH 2 -CH(NHCHO)-, -CH 2 -CH(CH 3)-O-, -CH(CH 3)-CH 2 -O-, -CH 2 -C(CH 3) 2 -O-, -C(CH 3) 2 -CH 2 -O-, -CH 2 -CH 2 -CH 2 -O-, -CH 2 -CH 2 -CH 2 -CH 2 -O-, -CH 2 -CHVin-O-, -CHVin-CH 2 -O-, -CH 2 -CHPh-O- and -CHPh-CH 2 -O- where Ph is phenyl and Vin is vinyl, are esterified with (meth) acrylic acid or transesterified with at least one (meth)acrylic ester in the presence of at least one heterogeneous catalyst selected from the group consisting of inorganic phosphate salts, wherein the at least one inorganic phosphate salt has a pK B of not more than 7.0 and not less than 1.0, and a solubility in the reaction medium at 25°C of not more than 1 g/l, and enzymes, wherein the enzyme is selected from the group consisting of lipase from Candida antarctica B, lipase from Alcaligenes sp., Aspergillus sp., Mucor sp., Penicilium sp., Geotricum sp., Rhizopus sp., Burkholderia sp., Candida sp., Pseudomonas sp., Thermomyces sp. or porcine pancreas. Z 1 is oxygen, sulfur, unsubstituted or substituted phosphorus or mono- or unsubstituted nitrogen (N-R 3), R 1 and R 2 are each independently C 2 -C 20 -alkylene, C 5 -C 12 -cycloalkylene, C 6 -C 12 -arylene, or C 2 -C 20 -alkylene interrupted by one or more oxygen and/or sulfur atoms and/or one or more substituted or unsubstituted imino groups and/or by one or more cycloalkyl, - -,-O O-, - O-, -O -, -O - or - O-groups, where the radicals mentioned may each be substituted by aryl, alkyl, aryloxy, alkyloxy, heteroatoms and/or heterocycles, or R 2 -OH is a group of the formula -[X i] k -H, R 3, R 4 and R 5 are each independently hydrogen, C 1 -C 18 -alkyl, or C 2 - C 18 -alkyl, C 2 - C 18 -alkenyl, C 6 -C 12 -aryl, C 5 - C 12 -cycloalkyl which are each optionally interrupted by one or more oxygen and/or sulfur atoms and/or one or more substituted or unsubstituted imino groups, or a five- to six-membered heterocycle having oxygen, nitrogen and/or sulfur atoms, where the radicals mentioned may each be substituted by aryl, alkyl, aryloxy, alkyloxy, heteroatoms and/or heterocycles, and R 3 and R 5 may also together form a five- to twelve-membered ring, with the proviso that, in the case that Z 1 = 0, R 5 is only unsubstituted C 1 - C 18 -alkyl, C 6 - C 12 -aryl or C 5 -C 12 -cycloalkyl, kis a number from 1 to 50 and X i for each i = 1 to k may independently be selected from the group of -CH 2 -CH 2 -O-, -CH 2 -CH 2 -N -, -CH 2 -CH 2 -CH 2 -N -, -CH 2 -CH(NH 2)-, -CH 2 -CH(NHCHO)-, -CH 2 -CH(CH 3)-O-, -CH(CH 3)-CH 2 -O-, -CH 2 -C(CH 3) 2 -O-, -C(CH 3) 2 -CH 2 -O-, -CH 2 -CH 2 -CH 2 -O-, -CH 2 -CH 2 -CH 2 -CH 2 -O-, -CH 2 -CHVin-O-, -CHVin-CH 2 -O-, -CH 2 -CHPh-O- and -CHPh-CH 2 -O- where Ph is phenyl and Vin is vinyl,