Setauket was founded as an agricultural community in the mid-17th century, and was a regional center of activity during the American Revolutionary War noted for the Culper spy ring and the Battle of Setauket. Many of Setauket's early structures are intact and now form the Old Setauket Historic District. The Setaukets remain a mostly residential area, while bordering the more commercial enclaves of Port Jefferson and Stony Brook. The handful of businesses within the community largely cater to the over 24,500 students of Stony Brook University, which is adjacent to the CDP.