 However the WR&GR later agreed to sell its undertaking to the GNR and the Manchester, Sheffield and Lincolnshire Railway jointly.They took possession on 1 February 1866, and the transfer was authorised by an Act of 28 June 1866.The Act also gave the GNR running powers to Grimsby from Stainforth, over the MS&LR, South Yorkshire Railway, and the Trent, Ancholme and Grimsby Railway.