A train derailed Wednesday and crashed through a fence at PortMiami.

Port spokeswoman Andria Muniz said the train was being used to transport containers to Hialeah.

Port traffic was not affected by the derailment and nobody was hurt.

The cause of the derailment was not immediately known.

Follow Peter Burke on Twitter @PeteBurke

Follow Local 10 on Twitter @WPLGLocal10