The oldest known insect fossils date back to around 400 million years ago during the Devonian period. Dinosaurs, on the other hand, first appeared during the Triassic period around 245 million years ago.
So, insects were around for a whopping 155 million years before dinosaurs even evolved!