Authorities say an evacuation order has been lifted for all but four homes following a 39-car train derailment in rural South Carolina.

Derrick Becker, public information officer for the South Carolina Emergency Management Division, tells The Associated Press that no one was injured following the crash about 8:30 p.m. Friday in Trenton. He says four homes closest to the wooded crash scene remain evacuated Saturday as a precaution.

Becker says one of the derailed Norfolk Southern tankers was carrying anhydrous ammonia and another was carrying ammonia nitrate, or dry fertilizer. He said no harmful spills were detected by Aiken County Hazmat officials who responded to the scene.

The cause of the derailment remains under investigation by National Transportation Safety Board and Norfolk Southern officials. No further details were immediately available.