The Wairarapa Line is a secondary railway line in the south-east of the North Island of New Zealand. The line runs for , connects the capital city Wellington with the Palmerston North - Gisborne Line at Woodville, via Lower Hutt, Upper Hutt and Masterton. The first part of the line opened in 1874 between Wellington and Lower Hutt, with the entire line to Woodville completed in 1897. It was the only New Zealand Government Railways route out of Wellington until 1908, when the government bought out the Wellington and Manawatu Railway Company who owned and operated the present North Island Main Trunk section between Wellington and Palmerston North. The line originally included the famous Rimutaka Incline, which used the Fell mountain railway system to cross the Rimutaka Range between Upper Hutt and Featherston. In the mid-1950s, the line between Petone and Featherston was substantially realigned, with the line diverted to the east of the Hutt River between Petone and Haywards to serve new housing developments in Lower Hutt, and the construction of the Rimutaka Tunnel to replace the Rimutaka Incline. Part of the former route west of the Hutt River has been retained as the Melling Branch. The southern portion of the line between Wellington and Upper Hutt is electrified and is also known as the Hutt Valley Line. Transdev on behalf of the Greater Wellington Regional Council runs suburban services along the Hutt Valley section, as well as the Wairarapa Connection service between Wellington and Masterton. KiwiRail runs regular freight services along the line between Wellington to Masterton and between Pahiatua and Woodville. No regular services currently run along the Masterton to Pahiatua section, and this section is currently under review as part of KiwiRail's turnaround plan. The Labour Party promised during the 2017 election campaign to upgrade the track to improve operation of the Wairarapa Connection, and on 9 October 2018 the Minister of Transport Phil Twyford announced that the proposed $196 million for the region included $96 million for the Wairarapa Line; $50 million in the Wairarapa and $46.2 million south of the Rimutaka Tunnel including double-tracking the Trentham to Upper Hutt section. Work is to start in April 2019. The double-tracking will be completed in 2021. Other "infrastructure renewals" on the line include three bridges with timber elements and track renewal (including in the Rimutaka Tunnel), replacement of signals between Masterton and Featherston and upgrades to