Avian plumage colours are model traits in understanding the evolution of sexually selected ornamental traits. Paradoxically, iridescent structural colours, probably the most dazzling of these traits, remain the most poorly understood. Though some data suggest that expression of bright iridescent plumage colours produced by highly ordered arrays of melanosomes and keratin is condition-dependent, almost nothing is known of their ontogeny and thus of any developmental mechanisms that may be susceptible to perturbation. Here, we use light and electron microscopy to compare the ontogeny of iridescent male and non-iridescent female feathers in blue-black grassquits. Feather barbules of males contain a single layer of melanosomes bounded by a thin layer of keratin-producing blue iridescent colour, while those of females contain disorganized melanosomes and no outer layer. We found that nanostructural organization of male barbules occurs late in development, following death of the barbule cell, and is thus unlikely to be under direct cellular control, contrary to previous suggestions. Rather, organization appears to be caused by entropically driven self-assembly through depletion attraction forces that pin melanosomes to the edge of barbule cells and to one another. These forces are probably stronger in developing barbules of males than of females because their melanosomes are (i) larger, (ii) more densely packed, and (iii) more homogeneously distributed owing to the more consistent shape of barbules during keratinization. These data provide the first proposed developmental pathway for iridescent plumage colours, and suggest that any condition dependence of iridescent barbules is likely driven by factors other than direct metabolic cost.