Camouflage is vital for the survival of many prey species1,2, including ground-nesting birds3,4,5,6. Egg camouflage via background matching and disruptive coloration (high contrast markings that break up the body outline) is often behaviourally mediated by selecting substrates that enhance egg camouflage1,2,3,4,5,6. However, the mechanisms controlling this behaviour in birds have remained unknown. Several, not mutually exclusive, mechanisms have been suggested to control background choice for egg camouflage7. These include where individual background preferences are genetically linked to egg coloration, enabled through learning egg appearances from previous breeding attempts, or modified by imprinting on visual backgrounds during early life7, Here, using predator vision models, we compared the camouflage of Japanese quail (Coturnix japonica) eggs among females who were allowed to choose one of four coloured substrates on which to lay3. Birds were divided into experienced females who had been given the opportunity to observe the appearance of their eggs, versus naïve females breeding for the first time. Our experiment revealed that breeding experience leads to improved background choices made for egg background matching. However, substrate choice for disruptive coloration appeared genetically determined, as both bird groups chose backgrounds that enhanced egg disruptiveness regardless of experience. These mechanisms underpin behaviours that are likely essential for birds and other animals to optimise camouflage and avoid predation6.