The National Weather Service says flash flooding in the Cooke County town of Valley View caused a train derailment.
It happened around 1 a.m. near Spring Creek, which feeds into Lake Ray Roberts.
BNSF Railway spokesman Joe Faust said four locomotives and 13 cars carrying mixed freight went off the tracks.
Four crew members were hurt, but their injuries are not life threatening.
They said they noticed high water and strong winds just before the accident.
Faust said heavy equipment is being brought in for the cleanup.
"It will be a massive cleanup job, but we have experienced people across the country for when we do have these types of occurrences. So I'm confident that we will address it quickly, promptly, safely and will resume traffic probably within the next 48 hours," he said.
Some of the track will also need to be repaired.