Fossas are found only on the island of Madagascar and inhabit a wide range of forested habitats, including rainforests, dry deciduous forests, and montane forests. They are arboreal and terrestrial, and their habitat includes trees, rocks, and caves, which they use for shelter and hunting.