A train derailed Wednesday near the small town of Lancaster in northwestern Minnesota's Kittson County.

A statement from Canadian Pacific Kansas City, the rail line that owns the train, said that 24 cars were involved carrying multiple types of cargo, including some hazardous materials.

"There were no leaks from the rail cars as a result of the derailment," C. Doniele Carlson, a spokesperson for the rail line, wrote in the statement.

She added that crews had cleared the rail corridor as of Thursday afternoon and reopened it to traffic after completing repairs and inspections. The cause of the derailment is under investigation.

The hazardous cargo included two flammable liquids — six cars carried naphtha, a petroleum product, and two cars carried decene, a compound that the National Institutes of Health's chemical information site notes is toxic to humans and "very toxic to aquatic life with long-lasting effects."

Nobody was injured in the derailment, and Carlson said there was no fire and no waterways nearby.

"Glad to hear that no injuries are reported and the site is contained," Gov. Tim Walz tweeted Wednesday night. "Experts are on the way to survey the site and make sure the community has everything they need."

Lancaster is nearly 400 miles northwest of Minneapolis, near Minnesota's borders with North Dakota and Canada. It had 364 residents as of the 2020 census.

The Minnesota Department of Transportation's District 2 office announced in a tweet Wednesday night that Hwy. 59 south of Lancaster was closed. In a post Thursday afternoon, the agency said the road would stay closed for roughly two weeks to let responders and inspectors continue their work.