Creating habitat diversity with features like flowering plants, insect hotels, and water sources can attract beneficial insects like bees, ladybugs, and lacewings, which prey on garden pests and promote pollination.