There are a number of garden plants that attract both hummingbirds and butterflies. For best growing success, plant these in areas that have plenty of sunlight. Whenever possible, choose red cultivars of species that have more than one form. Similarly some plants attract only one or two butterfly species. If your budget is limited, pick plants like those listed earlier that will attract many species.
Many butterflies engage in a behavior called puddling.
They congregate in muddy areas where they drink fluids rich in salts and minerals. Maintain a muddy patch of dirt and you may observe this activity. Pesticides pose serious dangers to both hummingbirds and butterflies. The delicate butterflies are, of course, most effected. Virtually all of the broad-spectrum and systemic chemicals will kill them and so will some otherwise highly recommended biological controls like Bt.