The invention provides a method for connecting a metal material with a resin matrix composite material via friction stir welding. The method adopts the principle that friction heat and pressure are provided by a friction stir welding device, and the connection between the metal material and the resin composite material is directly realized. Concretely, the method comprises the following steps: overlaying a metal material plate on resin, and performing fixation through a jig; then setting a technological parameter of friction stir welding, inputting an operation command through a numerical control machine tool, and automatically accomplishing overlap welding of shapes, such as dots, lines and rings; performing sufficient cooling after welding accomplishment, so as to obtain a metal material/resin material connecting piece. The technology has the advantages that the direct connection between metal and the resin material is realized, the combination speed is high, the strength is high, automatic connection of dots, lines, planes and three-dimensional shapes can be realized, the method can be widely applied to practical production processes of automobiles, trains and airplanes, and the purposes of light weight of products and energy conservation and environment protection are realized.