The Ottoman constitution of 1876 was the first constitution of the Ottoman Empire. Written by members of the Young Ottomans, particularly Midhat Pasha, during the reign of Sultan Abdul Hamid II (1876–1909), the constitution was only in effect for two years, from 1876 to 1878 in a period known as the First Constitutional Era. [...]
In the course of their studies in Europe, some members of the new Ottoman elite concluded that the secret of Europe's success rested not just with its technical achievements but also with its political organizations. Moreover, the process of reform itself had imbued a small segment of this elite with the belief that constitutional government would be a desirable check on autocracy and provide them with a better opportunity to influence policy. Sultan Abdülaziz's chaotic rule led to his deposition in 1876 and, after a few troubled months, to the proclamation of an Ottoman constitution that the new sultan, Abdul Hamid II, pledged to uphold.
— Wikipedia article on the 1876 constitution, linked below
First page of the 1876 constitution.
19th century portrait of Sultan Abdul Hamid II.