The invention relates to a method of preparing a composition comprising(a) reacting- a binder component (B) comprising at least one alkoxysilane (B2), and a polymer dispersion (PD), thus obtaining a prepolymer and subsequently(b) mixing or hydrolyzing and polycondensing said prepolymer in the presence of- water and- at least one antimicrobial agent (Z) comprising at least one antimicrobial active (Z1) and optionally a particulate carrier substance (Z2),wherein the at least one antimicrobial agent (Z) is unreactive during step (b).本發明係關於製備組合物之方法,其包含:(a) 使包含至少一種烷氧基矽烷(B2)及聚合物分散液(PD)之黏合劑組分(B)反應,由此獲得預聚物,及接著(b) 在以下物質存在下混合或水解及縮聚該預聚物- 水,及- 至少一種抗微生物劑(Z),其包含至少一種抗微生物活性劑(Z1)及視情況選用之顆粒載劑物質(Z2),其中該至少一種抗微生物劑(Z)在步驟(b)期間不反應。