Montauk was originally inhabited by the Montaukett Native American tribe and was later purchased by settlers in 1686. The economy was based on raising livestock like cattle and fishing popular catches like striped bass and flounder. Tourism became important in the late 19th century when a railroad was constructed, allowing visitors from New York City. During wars like the Spanish American War and World Wars, Montauk was used for military purposes like housing troops and testing weapons.