Ten rail cars of a westbound BNSF freight train derailed between Tehachapi and Keene about 3 p.m. Monday, tying up the tracks in both directions.

The incident tore up about a quarter of a mile of track. The cause is under investigation.

Railroad accident recovery crews were en route to clean up and make repairs.