Alliarinoside, a feeding inhibitor against early instar larvae of Pieris napi oleracea, was isolated from the foliage of Alliaria petiolata and characterized as (2Z)-4-(beta-D-glucopyranosyloxy)-2-butenenitrile (1) by spectroscopic methods. The structural assignment was confirmed by synthesis of peracetylated alliarinoside (2) and its 2E isomer (3). A sample of synthetic 1 was isolated by preparative HPLC from the hydrolysis of the 2Z acetate. Feeding inhibition assays showed comparable activity for the synthetic and natural glycosides.