Use fine wire mesh to keep leaves, bugs and other materials from getting into the rain barrel. (See References 1) The barrel itself should be lightproof and tightly sealed to keep mosquitoes from getting in and laying eggs in your water supply (see References 2).