Tetracaine and pramocaine were used as the lead compounds to design benzoate compounds. The combination principle was used to design the target molecule, and the target molecule was modified by bioisostere formation and modification with alkyl groups. In this research, a total of 16 compounds were designed and synthesized. In the process of synthesis, we selected a route with high total yields, mild conditions and simple operation. Three steps were used in the synthesis of the new target compounds, namely, alkylation, esterification and alkylation. The newly designed target compounds were evaluated via surface anesthesia, infiltration anesthesia, block anesthesia and acute toxicity tests. The results of biological activity experiments showed that compounds 4d, 4g, 4j, 4k, 4n, and 4o had a good local anesthetic effect, and the results of acute toxicity tests showed that the target compounds had low toxicity.