BOSTON (AP) — The owners of Suffolk Downs will pay more than $5 million to settle allegations that the racetrack allowed wastewater with horse manure, urine and other pollutants to flow into Salt Creek.

The U.S. Environmental Protection Agency said Wednesday its inspectors found suspended solids, bacteria and other pollutants flowing to the creek, which runs into Boston Harbor and Bell Isle Inlet.

The EPA said Sterling Suffolk Racecourse LLC will pay a civil penalty of $1.25 million to resolve violations of the Clean Water Act. The company also is spending more than $3 million to prevent polluted water from entering waterways in Revere and East Boston, and will perform projects worth about $742,000 to protect water quality.

Suffolk Downs said it's cooperated with environmental agencies since the issue arose five years ago.