The ocelot ranges through the Americas from southern Texas and occasionally Arizona, across Mexico and Central America, then through much of South America east of the Andes to northern Argentina. It occupies tropical evergreen forest, dry forest, thornscrub, mangrove, savanna edges and wetlands. Records extend from sea level to roughly 3,800 m, although most occur below 1,200 m.
Dense cover is more important than any single forest type. In south Texas, breeding habitat is closely associated with thick thornscrub. In the Amazon and Pantanal, ocelots use humid forest, river margins and seasonally flooded ground. They may enter plantations or cross open areas when prey is abundant and native cover remains nearby, but roads and wide cleared fields can divide populations.
The cat can swim and climb, yet most hunting and travel occurs on the ground. By day it rests in vegetation, a hollow tree or a sheltered branch. At night it follows game trails, stream edges and other routes where prey is likely to pass.