Resident and mostly sedentary. A widespread, fairly common breeder. In uplands, in mixed deciduous forests, often with oaks. In lowlands, in alder and willow riverine woodlands, poplar plantations and orchards. Favours areas with standing deadwood and avoids conifer plantations.