vuelta al huerto
Swallowtail
ButterflyPollinator

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

Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
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

  1. Newly hatched and young: black with a white patch in the middle, mimicking a bird dropping.
  2. Medium and large: pale green with a black band on each segment dotted with orange spots.
  3. If disturbed, it pushes out two orange "horns" (osmeterium) from behind its head that smell of fennel: they are harmless.

How to recognise it at every stage

Pollinator

Pollinator. 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

JanFebMarAprMayJunJulAugSepOctNovDec
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

  1. 1

    Egg

    · 1 mm
    Protect it

    A 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.
  2. 2

    Caterpillar

    · Up to 4-5 cm
    Protect it

    When 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
  3. 3

    Chrysalis

    · 3 cm
    Protect it

    Green (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.
  4. 4

    Butterfly

    · 6.5-8 cm
    Protect it

    Yellow 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
Sources