There was a railway service in the city served by the Philippine National Railways. However, in 1988 the North Main Line of the PNR was closed and train services in Malolos ceased immediately. On November 20, 2003, in an attempt to revive the railway service, North Luzon Railways Corporation and China National Machinery and Equipment Group (CNMEG) executed a Contract Agreement for the construction of Section I, Phase I of the North Luzon Railway System from Caloocan to Malolos on a turnkey basis. The project was worth $421,050,000. However, on February 13, 2006 a controversy arose from the project and the project was placed on halt indefinitely. In 2017, the project was revived and was called "North South Commuter Railway" with funds sourced from Japan through a loan. On January 5, 2018, the Department of Transportation broke ground for the first phase of the project.