Pectin was firstly extracted from dried orange peel. A memory device with Ag/Pectin/FTO structure was prepared. The device exhibits superior resistive switching memory characteristics. The conductive filament model is suggested to explain the memory behavior.