Under international law, a thalweg is the middle of the primary navigable channel of a waterway that defines the boundary line between states.   Also under international law, thalwegs can acquire special significance because disputed river borders are often deemed to run along the river's thalweg.
The word thalweg is of 19th-century German origin. The German word Thalweg (modern spelling talweg) is a compound noun that is built from the German elements Thal (since Duden's orthography reform of 1901 written Tal) meaning valley (cognate with dale in English), and Weg, meaning way. It literally means "valley way" and is used, with its modern spelling talweg, in daily German to describe a path or road that follows the bottom of a valley, or in geography with the more technical meaning also adopted by English.
In hydrological and fluvial landforms, the thalweg is a line drawn to join the lowest points along the entire length of a stream bed or valley in its downward slope, defining its deepest channel. The thalweg thus marks the natural direction (the profile) of a watercourse.
The term is also sometimes used to refer to a subterranean stream that percolates under the surface and in the same general direction as the surface stream.
Slowing stream-bed erosion by taking advantage of a thalweg helps stabilize running water sources. Placing boulders along the thalweg in a running water source helps to protect the channel's sedimentary erosion and deposit balance. In concurrence with the placement of boulders along a thalweg, the placement of boulders along an instream to form man-made sills also helps to slow the sedimentary erosion and deposit of running water sources, while keeping the esteem (fishing, local wildlife, and recreation) and natural resources  of the running water source intact. The placement of boulders along a thalweg and the creation of instream sills help to aid the flow of water during late summer months when the flow rate drops, and help to slow sedimentary erosion and deposit in the spring and fall months when the flow rates are high. This process of utilizing a thalweg to slow stream-bed erosion was used in Meacham Creek in Umatilla, Oregon. 
The thalweg principle (also known as the thalweg doctrine or the rule of thalweg) is the legal principle that if the boundary between two political entities is stated to be a waterway, without further description (e.g., a median line, right bank, eastern shore, low tide line, etc.), the boundary follows the thalweg of that watercourse. In particular, the boundary follows the center of the principal navigable channel of the waterway (which is presumably the deepest part). If there are multiple navigable channels in a river, the one principally used for downstream travel (likely having the strongest current) is used. 
The precise drawing of river boundaries has been important on countless occasions; notable examples include the Shatt al-Arab between Iraq and Iran, the Danube in central Europe, the Kasikili/Sedudu Island dispute between Namibia and Botswana, settled by the International Court of Justice in 1999,  and the 2004 dispute settlement under the UN Law of the Sea concerning the offshore boundary between Guyana and Suriname, in which the thalweg of the Courantyne River played a role in the ruling.  
- Webster Dictionary
- "dictionary.com". dictionary.com. dictionary.com. Retrieved 8 October 2017.
- "Merriam-Webster". Merriam-Webster. Merriam-Webster. Retrieved 8 October 2017.
- "Instream Flows". Washington State Department of Ecology. 18 January 2013. Retrieved 30 October 2014.
- Umatilla River Basin Anadromous Fish Habitat Enhancement Project 1990 Annual Report Carl A. Sheeler, Fish Habitat Biologist Slatick, January 1991
- A. Oye Cukwurah, The Settlement of Boundary Disputes in International Law, Manchester University Press, 1967, pp. 51 ff.
- "Kasikili/Sedudu Island (Botswana/Namibia)". International Court of Justice. 13 December 1999. Retrieved 10 February 2012.
- Permanent Court of Arbitration - Guyana/Suriname Archived 2013-02-08 at the Wayback Machine
- Award of the Tribunal Archived 2011-01-02 at the Wayback Machine