From its origins Islam has been an expansionist religion, understanding itself as a matter of faith to be in a permanent state of war with the non-Muslim world. After the initial consolidation of the Islamic caliphate, however, it soon became apparent that constant military hostilities could not be sustained and that other forms of relationship with non-Muslim nations would be necessary. To reconcile the imperatives of faith with the limits of military power, Islamic scholars developed elaborate legal doctrines. In the second century of the Muslim era (eighth century C.E.), hundreds of years before the codification of international law in Europe by Grotius and others, Muhammad ibn al-Hasan al-Shaybani, an eminent jurist of the Hanafite school in present-day Iraq, wrote the first major Islamic treatise on the law of nations, Kitab al-Siyar al-Kabir. Translated with an extensive commentary by Majid Khadduri, Shaybani's Siyar describes in detail conditions for war (jihad) and for peace, principles for the conduct of military action and of diplomacy, and rules for the treatment of non-Muslims in Muslim lands. A foundational text of the leading school of law in Sunni Islam, it provides essential insights into relations between Islamic nations and the larger world from their earliest days up to the present.