The earliest dragonflies appeared over 300 million years ago.