The Trinity River is the longest tributary of the Klamath River, approximately 165 miles (266 km) long, in northwestern California in the United States. It drains an area of the Coast Ranges, including the southern Klamath Mountains, northwest of the Sacramento Valley.