A single-chain variable fragment (scFv) specific for berberine was produced in Escherichia coli. The anti-berberine scFv gene was cloned from hybridoma 1D5-3B-7 producing the monoclonal antibody. The variable regions of the heavy (V(H)) and light chain (V(L)) genes were connected with a flexible linker using an assembly PCR. The V(H)-linker-V(L) gene was inserted into a plasmid, pET28a (+), then overexpressed in E. coli BL21 (DE3). The active of the scFv by refolding based on stepwise dialysis methods and an artificial chaperone was determined by direct and competitive enzyme-linked immunosorbent assay (ELISA). The results of direct ELISA showed that the anti-berberine scFv retained specific binding activity to berberine. In competitive ELISA, however, activity was increased depending on the concentration of berberine.