One of the five largest mass extinctions of the past 600 million years occurred at the boundary of the Triassic and Jurassic periods, 201.6 million years ago. The loss of marine biodiversity at the time has been linked to extreme greenhouse warming, triggered by the release of carbon dioxide from flood basalt volcanism in the central Atlantic Ocean. In contrast, the biotic turnover in terrestrial ecosystems is not well understood, and cannot be readily reconciled with the effects of massive volcanism. Here we present pollen, spore and geochemical analyses across the Triassic/Jurassic boundary from three drill cores from Germany and Sweden. We show that gymnosperm forests in northwest Europe were transiently replaced by fern and fern-associated vegetation, a pioneer assemblage commonly found in disturbed ecosystems. The Triassic/Jurassic boundary is also marked by an enrichment of polycyclic aromatic hydrocarbons, which, in the absence of charcoal peaks, we interpret as an indication of incomplete combustion of organic matter by ascending flood basalt lava. We conclude that the terrestrial vegetation shift is so severe and wide ranging that it is unlikely to have been triggered by greenhouse warming alone. Instead, we suggest that the release of pollutants such as sulphur dioxide and toxic compounds such as the polycyclic aromatic hydrocarbons may have contributed to the extinction.