A gene which helps a harmless African butterfly ward off predators by giving it wing patterns like those of toxic species, has been identified. The mocker swallowtail butterfly, Papilio dardanus, is unusual because it emerges from its chrysalis with one of a large number of different possible wing patterns and colors. This is different from most butterfly species which are identified by a common wing pattern and colour. Furthermore, some of the different patterns that the mocker swallowtail exhibits mimic those of poisonous species, which affords this harmless insect a valuable disguise which scares off predators.