The Ottoman Empire used a variety of flags, especially as naval ensigns, during its history. The star and crescent came into use in the second half of the 18th century. A buyruldu from 1793 required that the ships of the Ottoman Navy were to use a red flag with the star and crescent in white. In 1844, a version of this flag, with a five-pointed star, was officially adopted as the Ottoman national flag. The decision to adopt a national flag was part of the Tanzimat reforms which aimed to modernize the Ottoman state in line with the laws and norms of contemporary European states and institutions. The star and crescent design later became a common element in the national flags of Ottoman successor states in the 20th century. The current flag of Turkey is essentially the same as the late Ottoman flag, but has more specific legal standardizations that were introduced with the Turkish Flag Law on May 29, 1936. Before the legal standardization, the star and crescent could have slightly varying slimness or positioning depending on the rendition.
Early flags
Pre-modern Ottoman armies used the horse-tail standard or tugh rather than flags. Such standards remained in use alongside flags until the 19th century. A depiction of a tugh appears in the Relation d'un voyage du Levant by Joseph Pitton de Tournefort . War flags came into use by the 16th century. During the 16th and 17th centuries, Ottoman war flags often depicted the bifurcated Zulfiqar sword, often misinterpreted in Western literature as showing a pair of scissors. the Topkapı Museum exhibits a Zulfiqar flag claimed to have been used by Sultan Selim I. Two Zulfiqar flags are also depicted in a plate dedicated to Turkish flags in vol. 7 of Bernard Picart's Cérémonies et coutumes religieuses de tous les peuples du monde, attributed to the Janissaries and the Ottoman cavalry. The crescent symbol appears in flags attributed to Tunis from as early as the 14th century, long before Tunis fell under Ottoman rule in 1574. But the crescent as a symbol also had 14th-century associations with the Ottoman military and millennium-long associations with the city of Istanbul, which became the Ottoman capital after its conquest in 1453. The Spanish Navy Museum in Madrid shows two Ottoman naval flags dated 1613; both are swallow-tailed, one green with a white crescent near the hoist, the other white with two red stripes near the edges of the flag and a red crescent near the hoist.
Following the conquest of Constantinople in 1453, the crescent moon and star symbol started being used on Turkic peoples flags. Ottoman flags were originally commonly green, but the flag was defined as red by decree in 1793 and an eight-pointed star was added. The red version of the flag had become ubiquitous by the reign of Selim III. The five pointed star did not appear until the 1840s. With the Tanzimat reforms in the 19th century, flags were redesigned in the style of the European armies of the day. The flag of the Ottoman Navy was made red, as red was to be the flag of secular institutions and green of religious ones. As the reforms abolished all the various flags of the Ottoman pashaliks, beyliks and emirates, a single new Ottoman national flag was designed to replace them. The result was the red flag with the white crescent moon and star, which is the precursor to the modern flag of Turkey. A plain red flag was introduced as the civil ensign for all Ottoman subjects. After the foundation of the Republic of Turkey in 1923, the new Turkish state maintained the last flag of the Ottoman Empire. Proportional standardisations were introduced in the Turkish Flag Law of 29 May 1936.
Imperial standards
The imperial standard displayed the sultan's tughra, often on a pink or bright red background. The standard used by the last Caliph, Abdülmecid II consisted of a green flag with a star and crescent in white on a red oval background within a rayed ornament, all in white.