The ‘coping hypothesis’ of stereotypic behaviour — that stereotypies are performed as a means of helping the animal to cope with its environment by reducing stress — was tested using two adult female margays (Leopardus wiedii), an endangered neotropical small cat species. Within-individual and between-individual comparisons of the duration of stereotypic pacing and glucocorticoid concentration, measured non-invasively in faeces, indicated that stereotypic pacing did not help the two margays to cope with their captive environment by reducing their physiological stress level. However, hiding appeared to serve as a coping function in the two margays, not by immediately reducing the faecal glucocorticoid concentration, but rather as a long-term effect.