Originally built in 1886 for use by the military, the Royal National Park railway line initially linked Loftus Station on the Illawarra Line to an army training camp in Royal National Park. Tourists and visitors to the park were able to use it until 1991 when it closed. The line now forms part of the Sydney Tramway Museum.