Dragonflies are attracted to water, as they lay their eggs in or near water bodies. They are also attracted to areas with abundant insects, as they are predatory insects themselves and feed on smaller insects such as mosquitoes and flies.