The data set comprises 4 tables. First, the community data (YData) aggregates the yearly occurrences of 544 species of moth collected across the UK between 1990 and 2019 by the lightbulb trap network of the Rothamsted Insect Survey. The second table (TrData) aggregates the value of 6 response traits for the 544 moth species. The third table (XData) aggregates values of putative environmental drivers (weather, land-cover and topology) at the sites and years of trapping. Finally, the last table (gridXData) is a 1km resolution grid of the drivers for the year 2020. The three first tables enable the training of species distribution models, while the grid enables the production of UK-wide map the the species distributions with the trained models.