The invention relates to a controlled-release bacteriostatic agent and a preparation method thereof. The controlled-release bacteriostatic agent is a pasty colloid obtained by mixing a controlled-release agent, a bactericide, an enhancer and a dissolving agent, and comprises the following effective components in parts by weight: 1,000 parts of sodium bentonite, 1.2-1.8 parts of hymexazol, 3.6-6.0 parts of resin acid copper salt, 24-36 parts of aluminum sulfate, and the balance of purified water. All the components are interacted to be prepared into grey white pasty colloid, so that the bacteria prevention and corrosion prevention effects are prominent, the characteristics and performance of various components are fully utilized, and the matching and dosage are scientific and reasonable; the bacteriostatic agent is closely combined with the production reality, is simple, convenient and feasible in application method, low in material price, easy to purchase materials, wide in application range, strong in practicability, and higher in popularization and application value.