The Wyndham Branch, also known as the Glenham Branch, was a branch line railway in Southland, New Zealand. The first section was opened in 1882 and it operated until 1962. Although its name would imply that it terminated in Wyndham, an extension to a terminus in Glenham operated for forty years. It was operated by the New Zealand Railways Department.
The Main South Line from Dunedin to Invercargill was built on the west side of the Mataura River north of Edendale, thereby leaving the small east bank town of Wyndham off the route. To satisfy local residents, a 6.5 km long branch was built from Edendale to the town and it opened on 2 October 1882. A further section had been let to a contractor, but with half of the works complete, they abandoned the project. Further processes of plan review and granting of contracts meant that the branch did not reach the town of Glenham until 1 May 1890. There were proposals to continue the branch into the lower Mataura River area, but in August 1888, the Public Works Department stated that no further expenditure on the line was proposed once it was complete to Glenham, and the Tokanui Branch (which at the time terminated in Mokotua) was extended into the lower Mataura instead. As Glenham was now established as the terminus, a locomotive depot was established in the town. Along the route from Wyndham to Glenham, a tunnel was required, and it became the second to southernmost railway tunnel in New Zealand and thereby one of the most southern railway tunnels in the world.
The following stations were located on the Wyndham Branch (in brackets is the distance from the junction in Edendale):
The tunnel between Wyndham and Glenham was approximately 301 metres (988 ft) long.