Built to fulfil a key condition of Confederation, the Intercolonial Railway, headquartered in Moncton, linked the Maritimes with the rest of Canada. With Sandford Fleming was the Chief Engineer the railway was completed in 1876.