A fez is a type of hat that is typically made of felt and has a short cylindrical or somewhat cone-shaped shape with a flat top that usually has a tassel attached to it. The name "fez" comes from the Moroccan city of Fez, where the dye to color the hat was produced. The fez was initially a brimless red, white, or black bonnet over which a turban was wrapped, but later the turban was eliminated, the bonnet shortened, and the color fixed to red. The fez was popularized during the Ottoman period and was worn in many countries in the Middle East, Eastern Europe, and North Africa. In Morocco, the fez is a symbol of nationalism and is associated with the Moroccan royal court. The decline of the fezs popularity has had its effect in Morocco too, and its place is not very different from that of the top hat in the UK or USA.