It is endemic to the Canary Islands, Azores and Madeira in the region known as Macaronesia in the eastern Atlantic Ocean.
It occurs in a wide variety of habitats from pine and laurel forests to sand dunes.