
Swallowtail
Papilio machaon
Also: Old World swallowtail, common yellow swallowtail, fennel caterpillar
Pollinator. Its caterpillar eats fennel, dill or carrot, but very little: protect it.
One of the largest and most beautiful butterflies in Spain. Its green caterpillar with black bands and orange dots turns up on fennel and carrots in the vegetable garden, and many people remove it by mistake. It only eats a few leaves: plant a little extra fennel and enjoy the transformation.
What to do: Protect it
Protect the caterpillar: if it is on your carrots or parsley, move it carefully to a fennel plant, or set aside a few plants just for it.
Flight months
- Wingspan
- 6.5-8 cm
- Generations
- Two or three a year; overwinters as a chrysalis.
- Where it lives
- All over Spain: vegetable gardens, roadsides with wild fennel, sunny hillsides.
How long each stage lasts
- Egg
- 5-10 days
- Caterpillar
- 3-4 weeks
- Chrysalis
- 2-3 weeks (or the whole winter)
- Adult
- 2-3 weeks
How it transforms
The mature caterpillar leaves the plant, finds a stem or a wall, anchors itself with a silk pad and a silk girdle, and the next day moults into a chrysalis. The chrysalis is green in summer and brown for the generation that overwinters.
The caterpillar, stage by stage
- Newly hatched and young: black with a white patch in the middle, mimicking a bird dropping.
- Medium and large: pale green with a black band on each segment dotted with orange spots.
- If disturbed, it pushes out two orange "horns" (osmeterium) from behind its head that smell of fennel: they are harmless.
Food plants (for the caterpillar)
FennelFennel grown for its leaves and aromatic seeds, hardier and wilder than bulb fennel.
DillAn aromatic annual dill, grown for both its leaves and its seed.
CarrotThe Nantes carrot, cylindrical and sweet.
RueRue is a perennial subshrub with bluish, finely divided, strong-smelling leaves and yellow flowers in summer.
ParsleyLeaf parsley, a biennial that is slow to germinate.
Nectar plants (for the adult)
LavenderA Mediterranean aromatic shrub with blue-violet spikes much loved by bees, indispensable in dry gardens and…
Buddleia (butterfly bush)A vigorous shrub with highly fragrant flower spikes that attract butterflies and bees all summer long.
ThistlesA large thistle with purple flowers and green leaves veined with white, almost like marble.
ThymePerennial thyme for poor, dry soil, ideal for sunny borders.
ZinniaAn annual with very vivid colours that flowers non-stop all summer and is very heat-tolerant.
How to recognise it at every stage
PollinatorPollinator. Its caterpillar eats fennel, dill or carrot, but very little: protect it.
Life cycle: Complete metamorphosis: egg (5-10 days), caterpillar (3-4 weeks), chrysalis (2-3 weeks, or the whole winter) and butterfly. Two or three generations a year.
Tap a stage to see it full size. The photos are AI reference images checked against real photographs; stages without a reliable photo are shown as text only.
Life-stage calendar
| Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Egg | ||||||||||||
| Caterpillar | ||||||||||||
| Chrysalis | ||||||||||||
| Butterfly |
Approximate months for mainland Spain; in cold areas they start later and in warm areas they last longer. Garden creatures this month
- 1Protect it
Egg
· 1 mmA small smooth sphere, pale yellow, laid singly.
- Where to find it
- On the tips of the fine leaves of fennel, dill, carrot or rue.
- When: Mar–Sep
- What to do
- Leave it: the little caterpillar will hatch within a week.
- 2Protect it
Caterpillar
· Up to 4-5 cmWhen young, black with a white patch (it looks like a bird dropping). When older, green with black bands and orange dots; if disturbed it pushes out orange horns.
- Where to find it
- Eating fennel, dill, carrot, parsley or rue.
- When: Apr–Oct
- What to do
- Protect it. If it is on the carrots or parsley, carefully move it to a fennel plant.
- Often confused with
- Swallowtail caterpillar versus a caterpillar that shares the garden. The swallowtail's is green with black bands and orange dots and lives on umbellifers; it eats very little. Do not mix it up with the cabbage white's (on cabbages) or with cutworms. See profile
- 3Protect it
Chrysalis
· 3 cmGreen (in summer) or brown (the winter one), with two little points on the head, held upright by a silk girdle.
- Where to find it
- On dry stalks, canes, walls and fences near the plant.
- When: May–Mar
- What to do
- When tidying in autumn, leave the dry stems with chrysalises until spring.
- 4Protect it
Butterfly
· 6.5-8 cmYellow with black veins, a row of blue spots and a red eyespot on the hindwings, with two little tails.
- Where to find it
- On lavender, thistle and buddleia flowers; on hilltops.
- When: Mar–Oct
- What to do
- Sow nectar flowers and leave fennel for its caterpillars.
- Often confused with
- Scarce swallowtail. The scarce swallowtail is cream-white with wedge-shaped black stripes and longer tails. See profile
Often confused with
- Swallowtail caterpillar versus a caterpillar that shares the garden. The swallowtail's is green with black bands and orange dots and lives on umbellifers; it eats very little. Do not mix it up with the cabbage white's (on cabbages) or with cutworms. See profile
- Scarce swallowtail. The scarce swallowtail is cream-white with wedge-shaped black stripes and longer tails. See profile