some butterflies may be in trouble because of habitat loss. because of the destruction of forests and grasslands, some types of butterflies have nowhere to feed and lay eggs. to help, some people plant a butterfly garden with flowers having lots of nectar for butterflies to feed on. some people also keep plants that butterflies lay eggs on, and enjoy watching the caterpillars hatch out and feed on the plant. chemical sprays that are used to keep pests away from garden plants, also kill butterflies.