Researchers at the University of Bristol have found that beetles first roamed the world in the Carboniferous and later diversified alongside the earliest dinosaurs during the Triassic and Jurassic.
https://www.bristol.ac.uk/news/2022/march/beetles-became-prolific.html
