Egypt’s legal system is primarily a civil law system based upon the combination of Islamic (sharia) law and the Napoleonic Code, as a system of codified laws. Its court system is divided into three types of courts that handle civil and criminal cases.
As a traveler, you must familiarize yourself with certain aspects of Egypt law that can impact and affect you, including drinking laws, cultural norms, import restrictions, and where taking photos is strictly prohibited. Be aware that criticizing the Egyptian government might result in legal repercussions.
According to the US State Department, Egyptian police and security forces do not require probable cause in order to stop, question, and detain individuals.
Here are some local laws applicable to foreign travelers in Egypt, as well as what to do if you encounter the Egyptian authorities.