The invention relates to a sophocarpine-series derivative as well as and a preparation method and purposes thereof. The sophocarpine-series derivative is characterized in that the general formula of the sophocarpine-series derivative is (I), wherein the R is CH3MgBr, EtMgBr, n-PrMgBr, i- PrMgBr, n-BuMgBr, i- BuMgBr, n-C5H11MgBr, i- C5H11MgBr, n-C6H13MgBr, n-C7H15MgBr, n-C12H25MgBr, and the like. The invention also discloses the preparation method and the purposes of the sophocarpine-series derivative. The preparation method relates to the diversity synthesis and the activity research of a structure based on sophocarpine, the structures of sophocarpine molecules are reformed and derived in an organically chemical synthesizing method, and then an antiviral medicament with high efficacy and low toxicity is obtained. The sophocarpine-series derivative has strong and obvious biologic activities, and has a very important function on relieving the pain of extensive patients and improving the living quality of the patients as a novel antiviral medicament with high efficacy and low toxicity.