Abstract. The influence of turbulent inflow, as it occurs in complex terrain, on the unsteady surface pressure distributions on a wind turbine is investigated numerically. A method is presented that enables an accurate reproduction of the inflow to the turbine in the complex terrain in Perdigao, Portugal. For this purpose, a precursor simulation with the steady-state atmospheric computational fluid dynamics (CFD) code E-Wind and a high-resolution Delayed Detached Eddy Simulation (DDES) with FLOWer is performed. The conservation of the flow field is validated by a comparison with measurements from the 2017 field campaign in Perdigao. Then, the resolved fluid-structure coupled generic wind turbine I82 is included in the FLOWer simulation to investigate the impact of the complex terrain inflow on the surface pressure fluctuations on tower and blades. A comparison with simulations of the same turbine in flat terrain with simpler inflows shows that the turbine in complex terrain has a significantly different vortex shedding at the tower, which dominates the periodic pressure fluctuations at the tower sides and back. However, the dominant source of periodic pressure fluctuations on the upper part of the tower, the blade-tower interaction, is hardly altered by the terrain flow. The pressure fluctuations on the blade have a rather broadband characteristic, caused by the interaction of the leading edge with the inflow turbulence. In general, it is shown that a sophisticated DDES of the complex terrain plays a decisive role in the unsteady aerodynamics of the turbine, due to its specific flow characteristic.