The Bay Ridge Branch is a rail line owned by the Long Island Rail Road (LIRR) and operated by the New York and Atlantic Railway in New York City. It is the longest freight-only line of the LIRR, connecting the Montauk Branch and CSX Transportation's Fremont Secondary at Glendale, Queens with the Upper New York Bay at Bay Ridge, Brooklyn.