Wind energy is one of the fastest growing sources of sustainable energy production. As more wind turbines are coming into operation, the best locations are already becoming occupied by turbines, and wind-farm developers have to look for new and still available areas-locations that may not be ideal such as complex terrain landscapes. In these locations, turbulence and wind shear are higher, and in general wind conditions are harder to predict. Also, the modelling of the wakes behind the turbines is more complicated, which makes energy-yield estimates more uncertain than under ideal conditions. This theme issue includes 10 research papers devoted to various fluid-mechanics aspects of using wind energy in complex terrains and illustrates recent progress and future developments in this important field. This article is part of the themed issue 'Wind energy in complex terrains'.