Internal waters
According to the United Nations Convention on the Law of the Sea, a nation's internal waters include waters on the side of the baseline of a nation's territorial waters that is facing toward the land, except in archipelagic states. It includes waterways such as rivers and canals, and sometimes the water within small bays. In inland waters, sovereignty of the state is equal to that which it exercises on the mainland. The coastal state is free to make laws relating to its internal waters, regulate any use, and use any resource. In the absence of agreements  to the contrary, foreign vessels have no right of passage within internal waters, and this lack of right to innocent passage is the key difference between internal waters and territorial waters. The "archipelagic waters" within the outermost islands of archipelagic states are treated as internal waters with the exception that innocent passage must be allowed, although the archipelagic state may designate certain sea lanes in these waters. When a foreign vessel is authorized to enter inland waters, it is subject to the laws of the coastal state, with one exception: the crew of the ship is subject to the law  of the flag state. This extends to labor conditions as well as to crimes committed on board the ship, even if docked at a port. Offences committed in the harbor and the crimes committed there by the crew of a foreign vessel always fall in the jurisdiction of the coastal state. The coastal state can intervene in ship affairs when the master of the vessel requires intervention of the local authorities, when there is danger to the peace and security of the coastal state, or to enforce customs rules. Disputes. The claim by one state of a waterway as internal  waters has led to disputes with other states. For example, Canada claims a section of the Northwest Passage as part of its internal waters, fully under Canadian jurisdiction, a claim which has been disputed by the United States and most maritime nations, which consider them to be an international strait, which means that foreign vessels have a right of transit passage. (See Canadian Internal Waters and .) The International Tribunal for the Law of the Sea, which was formed in 1994, has the power to settle maritime disputes between party states, although in practice, these resolutions depend on the willingness of  these states to adhere to the rulings.