A freight train hauling garbage derailed, causing commuters to take alternate transportation on July 18 and 19.