It has recently been found that iridescence, a taxonomically widespread form of animal coloration defined by a change in hue with viewing angle, can act as a highly effective form of camouflage. However, little is known about whether iridescence can confer a survival benefit to prey postdetection and, if so, which optical properties of iridescent prey are important for this putative protective function. Here, we tested the effects of both iridescence and surface gloss (i.e. specular reflection) on the attack behaviour of prey-naïve avian predators. Using real and artificial jewel beetle, Sternocera aequisignata , wing cases, we found that iridescence provides initial protection against avian predation by significantly reducing the willingness to attack. Importantly, we found that the main factor explaining this aversion is iridescence, not multiple colours per se, with surface gloss also having an independent effect. Our results are important because they demonstrate that even when prey are presented up close and against a mismatching background, iridescence may confer a survival benefit by inducing hesitation or even, as sometimes observed, an aversion response in attacking birds. Furthermore, this means that even postdetection, prey do not necessarily need to have secondary defences such as sharp spines or toxins for iridescence to have a protective effect. Taken together, our results suggest that reduced avian predation could facilitate the initial evolution of iridescence in many species of insects and that it is the defining feature of iridescence, its colour changeability, that is important for this effect. • Iridescence and gloss are usually associated with display, but can they also defend? • We tested naïve birds' willingness to attack glossy and iridescent prey. • Iridescence reduced attack probability, with gloss also having an independent effect. • Iridescence and gloss could provide a survival benefit to prey, even postdetection.