The present invention provides a pharmaceutical composition containing a quinoline derivative. In particular, the present invention provides a method for preparing a pharmaceutical composition containing (R,E)-N-(4-(3-chloro-4-(pyridin-2-ylmethoxy)phenylamino)-3-cyano-7-ethoxyquinolin-6-yl)-3-(1-methylpyrrolidin-2-yl)-acrylamide or a pharmacologically acceptable salt thereof. The preparation method is suitable for industrial mass production, and the resultant sample has characteristics of rapid dissolution, uniform dissolution, etc.