To attract two-tailed swallowtail butterflies to your garden, you can plant nectar-rich flowers such as milkweed , butterfly bush, or coneflowers. Providing host plants for their caterpillars, such as parsley or dill, can also help attract them.