The first version of Egyptian Civil Code was written in 1949 containing 1149 articles. The prime author of the 1949 code was Abdel-Razzak Al-Sanhuri,a jurist who received assistance from Dean Edouard Lambert of the University of Lille. Perhaps due to Lambert's influence, the 1949 code followed the French civil law model. The code focus on the regulation of business and commerce, and does not include any provisions regarding family law which is usually handled through Shari’a. Sanhuri purposely left out family law and succession to set it apart from the Turkish civil code.
The code also provides for Islamic law(shari’a) to have a role in its enforcement and interpretation. Article 1 of the code provides that, “in the absence of any applicable legislation, the judge shall decide according to the custom and failing the custom, according to the principles of Islamic Law. In the absence of these principles, the judge shall have recourse to natural law and the rules of equity.” Despite this invocation of Islamic law, one commentator has argued that 1949 code reflected a "hodgepodge of socialist doctrine and sociological jurisprudence."
The Egyptian Civil Code has been the source of law and inspiration for numerous other Middle Eastern jurisdictions, including pre-dictatorship kingdoms of Libya, Jordan and Iraq (all three drafted by Al-Sanhuri himself and a team of native jurists under his guidance), Bahrain (2001), as well as Qatar (1971) (these last two merely inspired by his notions), and the commercial code of Kuwait (drafted by El-Sanhuri). When Sudan drafted its own civil code in 1970, it was in large part copied from the Egyptian Civil Code with slight modifications. Today all Arab nations that have modern civil codes with the exception of Saudi Arabia and Oman, are based fully or partly on the Egyptian Civil Code.
Egypt began legal reform since 1875 when it gained independence from the Ottoman Empire in judicial and legal matters, which led to the establishment of mixed courts to deal with foreigners and national courts. This necessitated a need for a set of laws that had secular influence. In 1937, however, Egypt obtained international agreement for the union of its legal system and started to draw up a new series of comprehensive codes. Most of this effort was overseen by the Egyptian jurist Abd al-Razzaq al-Sanhuri. The code was originally drafted in 1942, but went through several revisions before its passage in 1949. The draftsman, Al-Sanhuri, stayed loyal to his vision of having judges rule in accordance with the code itself before considering using Shari’a, which had not been codified for a long time. For the first time in the modern history of the Arab Middle East, the Shari’a would be used to back up a secular document. With the civil code as the principal source of law, all shari’a courts were abolished. The writing of the Civil code was an attempt on the part of Al-Sanhuri to modernize Islamic law by adopting ideas from western civil law, a concept greatly supported by the elite members of Egyptian society. Westernization meant confining certain Islamic law to mostly matters dealing with personal status such as marriage, divorce, and inheritance. British colonization led to some shift from the common law, but the common law had little long-term impact on the legal systems of many countries that fell under British rule. Thus civil law, mostly of French origins, now prevails throughout the Middle East, and the occasional remnants of common law don’t seem likely to survive. As a result, the modern legal systems of Middle Eastern countries share the basic features of French law, such as relying on complete and logical statements of the law in codes as official sources of law, keeping a sharp division between public and private law and between commercial and private law.