<p>This invention provides a method for inhibiting scale formation within a hydrocarbon producing system, said method comprising contacting said system with a polymer formed from a diallyl ammonium salt, a monomer comprising one carboxylate group and a monomer comprising at least two carboxylate groups or an anhydride group.</p>