WASHINGTON—Alpha Natural Resources Inc., one of the nation's largest coal producers, agreed Wednesday to pay a $27.5 million fine for violations of the Clean Water Act, and will spend about $200 million to reduce toxic discharges into waterways in five Appalachian states, the company said and federal documents showed.

The settlement, reached among the Justice Department, the Environmental Protection Agency, three states and the...