The legal system in Tanzania is based on British Common Law, with the exception of its offshore islands. Zanzibar retains Islamic courts and its rules generally follow Islamic law, which is an important distinction to note.
As a traveler, you should be acquainted with the aspects of Tanzania law that can impact and affect you, including drinking laws, import restrictions, and where it’s illegal to take photos. Here are some local laws relevant to foreign travelers in Tanzania, as well as what to do if you get on the wrong side of the Tanzania authorities.