Port Jefferson was first settled in the 17th century and remained a rural community until its development as an active shipbuilding center in the mid-19th century. The village has since transitioned to a tourist-based economy. The port remains active as terminus of the Bridgeport & Port Jefferson Ferry, one of two commercial ferry lines between Long Island and Connecticut, and is supplemented by the terminus of the Long Island Rail Road's Port Jefferson Branch. It is also the center of the Greater Port Jefferson region of northwestern Brookhaven, serving as the cultural, commercial and transportation hub of the neighboring Port Jefferson Station, Belle Terre, Mount Sinai, Miller Place, Poquott, and the Setaukets.