With observational data in several bands in region AR2522, the relationshipbetween the evolution of the filament and the eruption of 1B/M4 two-ribbon flareis analysed. It is shown that: (1) the shearing movement of the filament footpointleads to the increase of the current intensity and the stored energy for the flareeruption; (2) the ascending motion and twisting of the filament are the results ofthe increasing current intensity and the stored energy of the flare, (3 ) Martens Kuin model is applicable to illustrate eruptive phenomena of the two-ribbon flarerelated to the filament with rapid motion.