Ant mimicry or myrmecomorphy is mimicry of ants by other organisms; it has evolved over 70 times. Ants are abundant all over the world, and potential predators that rely on vision to identify their prey, such as birds and wasps, normally avoid them, because they are either unpalatable or aggressive. Some arthropods mimic ants to escape predation (Batesian mimicry), while some predators of ants, especially spiders, mimic them anatomically and behaviourally in aggressive mimicry. Ant mimicry has existed almost as long as ants themselves; the earliest ant mimics in the fossil record appear in the mid-Cretaceous alongside the earliest ants.
In myrmecophily, mimic and model live commensally together; in the case of ants, the mimic is an inquiline in the ants' nest. Such mimics may in addition be Batesian or aggressive mimics. To overcome ants' powerful defences, mimics may imitate ants chemically with ant-like pheromones, visually, or by imitating an ant's surface microstructure to defeat the ants' tactile inspections.