The Hudson River is a 315-mile (507 km) river that flows from north to south primarily through eastern New York in the United States. The river originates in the Adirondack Mountains of Upstate New York, flows southward through the Hudson Valley to the Upper New York Bay between New York City and Jersey City. It eventually drains into the Atlantic Ocean at New York Harbor. The river serves as a political boundary between the states of New Jersey and New York at its southern end. Farther north, it marks local boundaries between several New York counties. The lower half of the river is a tidal estuary, deeper than the body of water into which it flows, occupying the Hudson Fjord, an inlet which formed during the most recent period of North American glaciation, estimated at 26,000 to 13,300 years ago. Even as far north as the city of Troy, the flow of the river changes direction with the tides.