The invention discloses an STAT3 small molecular selective inhibitor and a preparation method and applications thereof, and the STAT3 small molecular selective inhibitor comprises four structure general formulae as shown in formula I, formula II, formula III and formula IV. The preparation comprises the following steps: allowing 2-phenyl substituted quinoline-4-carboxylic acid thionyl chloride or oxalyl chloride to react to generate substituted acyl chloride, reacting with substituted arylamine to generate substituted quinoline-4-amide derivatives. The applications comprise an application in the preparation of medicaments for treating cancers related to abnormally-activated STAT3 pathway, and an application in the preparation of antitumor medicaments where the STAT3 small molecular selective inhibitor is used as an inhibitor of the STAT3 signal pathway. The STAT3 inhibitor of the invention is a small molecular selective inhibitor; based on results obtained by detecting its effect on cancer cells and evaluating its activity, the small molecular STAT3 selective inhibitor of the invention is applicable to the development of related cancer-treatment medicaments, has quite wide applications, and has very good medicine curative effect. The small molecular STAT3 selective inhibitor of the invention has various types, easily available raw materials, a simple preparation method, high product purity, high yield, and strong practicality.