The last of the fires tied to the derailment of a train carrying crude oil through Ontario have been extinguished, local officials said.

A train carrying crude oil on a line operated by Canadian National Railway Co. derailed during the weekend in Gogama, Ontario. CN said a nearby bridge was damaged in the derailment, and five of the cars crashed into an area river. Some of the fires tied to the crash were allowed to burn out on their own.

The village of Gogama said in a late Monday update rail cars were pulled from the river and rail traffic was expected to resume by Tuesday afternoon.

"CN crews and external specialist firefighters extinguished the last of the fires at the Gogama derailment site," the village said.

Air and water quality monitoring is ongoing, though local officials said there's no threat to area drinking water supplies.

The Transportation Safety Board of Canada dispatched investigators to the site of the derailment. Gogoma authorities said all monitoring and investigation is carried out in coordination with local, provincial, federal and tribal authorities.

The increase in North American crude oil production is more than the existing network of pipelines can handle, forcing many in the energy industry to use rail as an alternate transit method. The increase in traffic has coincided with an increase in derailments of trains carrying crude oil.

The Gogama derailment was the second such incident for CN in less than a month.