A key point for irrigation water distribution on the San Joaquin, despite its small size, is Mendota Dam. Built in 1871 at the juncture of the San Joaquin River and Fresno Slough, it initially served to divert water into the Main Canal, an irrigation canal for the riverside bottomlands in the San Joaquin Valley. In 1951, Mendota became the terminus of the Delta-Mendota Canal, a USBR project which conveys up to for from the mouth of the Sacramento River to the usually dry San Joaquin at that point. Water from Mendota is distributed in two directions: released into the San Joaquin for downstream diversions at the Sack Dam, another small diversion dam; and into Fresno Slough during the dry season, when no water is flowing in from the Kings River. The latter sends water into the Tulare Basin through the natural channel of the slough, which in essence conveys water in either direction depending on the time of year – north into the San Joaquin during the rainy season, south into the Tulare during the dry months.