The ten-year ScotRail franchise is due to end in 2025. Picture: Michael Gillen

The proposal to cancel the contract in 2022 was thrown out by 85 votes to 34.

Transport spokesman Colin Smyth had sought to win backing for ministers to trigger a "break clause" in the franchise agreement in 2020 to terminate the ten-year contract three years before it is due to end in 2025.

Labour wants to nationalise the train operator while the SNP Scottish Government said it would seek a public sector bidder for the next franchise.

Sign up to our daily newsletter The i newsletter cut through the noise Sign up Thanks for signing up! Sorry, there seem to be some issues. Please try again later. Submitting...

Mr Smyth said ending the ScotRail contract in 2022 would provide a chance to "put passengers before profits" because the "failing" franchise had become a "shambles".

However, connectivity minister Paul Wheelhouse said ScotRail was making significant improvements, and nearly two-thirds of delays were caused by track owner Network Rail.