The section of trackbed between Dún Laoghaire and Dublin City was originally laid out as part of the Dublin and Kingstown Railway, Ireland's first railway. This line was later connected with the Belfast mainline to the north and Wexford mainline to the south and joined the Harcourt Street line at Shanganagh Junction. The scenic views from the railway over Dublin Bay at this point have been favourably compared to those on the Gulf of Naples and have resulted in trips to Killiney Hill and Greystones along the line becoming popular tourist attractions.