Read the dictionary definition of fez. All definitions for this word.
1. a felt cap (usually red) for a man; shaped like a flat-topped cone with a tassel that hangs from the crown
2. a city in north central Morocco; religious center
See also:
Merriam-Webster definition of fez