A train derailed in Wisconsin over the weekend, injuring two people and causing thousands of gallons of diesel oil to spill in a small town in the southeastern part of the state.

The accident happened Sunday around 8:30 p.m. when a southbound Canadian National Railway Co. train struck several Wisconsin & Southern Railroad cars at a rail crossing in Slinger, Canadian National spokesman Patrick Waldron told The Associated Press.

Three engines and 10 railcars derailed, Slinger Fire Chief Rick Hanke said. Slinger is about 35 miles northwest of Milwaukee.

An engineer and conductor on the Canadian National train were taken to a hospital with injuries that were not life threatening, Waldron said Monday.

About 5,000 gallons of diesel spilled from a locomotive fuel tank, Hanke said. Hazardous materials crews placed booms around the spilled fuel and crews worked to upright the derailed cars Monday morning.

Some 100 people who live near the crash site were evacuated from their homes as a precaution but they were allowed to return around 1:30 a.m., Hanke said.

Details about the cause of the crash were not available early Monday. Waldron could not say if the Wisconsin & Southern train was stationary at the time of the collision. A representative for Wisconsin & Southern could not immediately be reached.

Waldron said the Canadian National train was headed from Fond du Lac, Wisconsin, to Champaign, Illinois.