A codpiece (from Middle English: cod, meaning "scrotum") is a covering flap or pouch that attaches to the front of the crotch of men's trousers and usually accentuates the genital area. It was held closed by string ties, buttons, or other methods. It was an important item of European clothing in the 15th and 16th centuries, and is still worn in the modern era in performance costumes, for rock music and metal musicians, and in the leather subculture, while an athletic cup protects in a similar fashion.
From the ancient world there are extant depictions of the codpiece; for example, archaeological recovery at Minoan Knossos on Crete has yielded figurines, some of which wear a codpiece. Most of what is objectively known about the cut, fit, and materials of Renaissance clothing is learned from realistic portraits, clothing inventories, descriptive receipts for payments of artifacts, or tailors' cutting guides. In the 14th century, men's hose were two separate legs worn over linen drawers, leaving a man's genitals covered only by a layer of linen. As the century wore on and men's hemlines rose, the hose became longer and joined at the centre back but remained open at the centre front. The shortening of the cote or doublet resulted in under-disguised genitals, so the codpiece began life as a triangular piece of fabric covering the gap.
As time passed, codpieces became shaped and padded to emphasize rather than to conceal, reaching their peak of size and decoration in the 1540s before falling out of use by the 1590s. Scholars have noted that the appearance of Renaissance codpiece was coincident with aggressive spread of syphilis in the early 16th century, and suggest that it may have first served to allow extra room in the clothing for bandages or other dressings for the afflicted male genitals.