AbstractWe investigated the reproductive ecology and effects of egg parasitism on the Samoan swallowtail butterfly (Papilio godeffroyi), which survives only on Tutuila Island, American Samoa, after having disappeared from the much larger islands of Upolu and Savai‘i in independent Samoa. During monthly surveys of its only known host plant, Micromelum minutum, across eight sites in 2013 and 2014, we collected eggs, eggshells, larvae, pupae, and pupal exuviae. Live specimens were reared under laboratory conditions to determine reproductive outcomes, developmental rates, and sex ratios, as well as parasitoid attack frequencies, brood sizes, and sex ratios. Sixty‐six of 448 (14.7%) eggs produced larvae, 47 of which became adults. The sex ratio was approximately even overall and within each developmental stage. Eggs were slightly larger on individual host trees and in host tree stands that yielded more eggs per unit of foliage, indicating that ovipositing females responded to some features of host trees and stands. Eggs hatching female or male larvae were similar in size, and the sexes developed at similar rates. A newly described species of parasitoid wasp, Ooencyrtus pitosina (Encyrtidae), emerged from 73.6% of 382 butterfly eggs that failed to hatch in the laboratory (62.7% of 448 eggs overall). Forty‐one other eggs contained dead parasitoid larvae. An additional, unidentified Ooencyrtus wasp species emerged from a single P. godeffroyi egg. No parasitoids were reared from P. godeffroyi larvae or pupae. Of 656 P. godeffroyi eggshells collected in the field and examined in the laboratory, 62.2% showed signs of having been parasitized by O. pitosina. There was no evidence that parasitism rates were density‐dependent. O. pitosina brood sizes ranged from 1 to 5, with the sex ratio skewed toward females (2.40 F:1.00 M). Larger parasitoid broods were associated with slightly larger host eggs, indicating that female wasps may adjust brood size according to host egg size or that fewer wasp larvae are able to complete development in smaller eggs. Techniques used to rear both P. godeffroyi and O. pitosina in the laboratory could be applied to a captive‐rear, wild‐release program, which may facilitate reestablishment of the species in Samoa.