The margay is mostly nocturnal. It eats small mammals (sometimes including monkeys), birds, eggs, lizards and tree frogs. The margay is able to hunt its prey entirely in trees. However, they do sometimes hunt on the ground, and have been reported to eat cane rats and guinea pigs.