A train derailment caused a fire to rip through the small town of Lac-Megantic in eastern Quebec early Saturday morning.