Signal transducer and activator of transcription 3 (STAT3) is a key regulator of many human cancers and has been widely recognized as a promising target for cancer therapy. A variety of small-molecule inhibitors have been developed for targeting STAT3, and some of them are now undergoing clinical trials. S3I-201, a known STAT3 inhibitor, may block STAT3 function in cancer cells by binding to the STAT3 SH2 domain to disrupt STAT3 protein complex formation. Using S3I-201 as a starting point for drug development, we synthesized a series of new STAT3 inhibitors 9a-x in this study by introducing naphthoquinone unit, a privileged fragment in STAT3 inhibitors. Most of the compounds exhibited strong anti-proliferation activity of gastric cancer cells (MGC803, MKN28, MNK1, and AGS). The representative compound 9n (SIL-14) could effectively inhibit the colony formation and migration of gastric cancer cells MGC803, arrest the cell cycle and induce MGC803 cell apoptosis at low micromolar concentrations in vitro. In addition, SIL-14 can also inhibit the phosphorylation of STAT3 protein and significantly decrease the expression of total STAT3, suggesting that it may exert anticancer effects by blocking the STAT3 signaling pathway. These results support that SIL-14 may be a promising STAT3 inhibitor for the further development of potential anti-gastric cancer candidates.