Diversified crop rotations have been suggested to reduce grain yield losses from the adverse climatic conditions increasingly common under climate change. Nevertheless, the potential for climate change adaptation of different crop rotational diversity (CRD) remains undetermined. We quantified how climatic conditions affect small grain and maize yields under different CRDs in 32 long-term (10-63 years) field experiments across Europe and North America. Species-diverse and functionally rich rotations more than compensated yield losses from anomalous warm conditions, long and warm dry spells, as well as from anomalous wet (for small grains) or dry (for maize) conditions. Adding a single functional group or crop species to monocultures counteracted yield losses from substantial changes in climatic conditions. The benefits of a further increase in CRD are comparable with those of improved climatic conditions. For instance, the maize yield benefits of adding three crop species to monocultures under detrimental climatic conditions exceeded the average yield of monocultures by up to 553 kg/ha under non-detrimental climatic conditions. Increased crop functional richness improved yields under high temperature, irrespective of precipitation. Conversely, yield benefits peaked at between two and four crop species in the rotation, depending on climatic conditions and crop, and declined at higher species diversity. Thus, crop species diversity could be adjusted to maximize yield benefits. Diversifying rotations with functionally distinct crops is an adaptation of cropping systems to global warming and changes in precipitation.Industrial agriculture often relies on one or few crop species grown in monocultures or short crop rotations, making them vulnerable to changes in climatic conditions. Using data from several agricultural experiments in Europe and North America, we show that including more crop species or crop types in rotation can mitigate cereal yield losses caused by increasingly common shifts in climatic conditions, such as increasing temperatures and decreasing precipitation. Hence, increasing crop rotational diversity can support the climate adaptation of the way we produce our food.imag