Aye-ayes are endemic to Madagascar, where they have a wider ecological range than their rarity once suggested. They occur in humid rainforest along the east, dry deciduous forest in the west and northwest, mangroves, secondary growth and some plantations. Camera surveys and direct sightings have documented them in more parts of the island than older accounts recognized, but a broad range does not mean the population is secure.
Trees remain essential. Aye-ayes forage mainly in the canopy and build spherical sleeping nests from leaves, twigs and vines. A nest sits high in a tree fork and has a side entrance. One animal may maintain several nests, and different individuals sometimes use the same structure on different days. During the night aye-ayes also descend to the ground, especially when moving between separated trees.
Forest fragmentation changes that movement. An aye-aye can use secondary vegetation, but isolated patches expose it to people and reduce safe routes between feeding and sleeping sites. Plantations may offer coconuts, mangoes or lychees, yet feeding there can cause the animal to be treated as a crop pest.