Te Town of Rye, which is adjacent to the Long Island Sound and the state of Connecticut, is larger than the unrelated City of Rye and is located in the county of Westchester, New York. It was part of Connecticut until it was ceded to New York State in 1683 as part of a boundary agreement.