The law of the sea comprises the rules governing the use of the sea, including its resources and environment. The law of the sea is one of the principal subjects of international law and is a mixture of the treaty and established or emerging customary law. The law of the sea covers rights, freedoms and obligations in areas such as shipping, territorial seas and waters and the high seas, fishing, wrecks and cultural heritage, protection of the marine environment and dispute settlement.