The invention discloses a terminal D2D (device-to-device) communication method based on a multiple-input multiple-output cooperation relay. In the method, multiple antennas and a relay technology are introduced to a D2D system, so that the rate and interruption probability of the D2D system are improved; in an IMT-Advanced (international mobile telecommunications-advanced) system, if a pair of cellular users need terminal D2D communication, but the distance between them exceeds an effective distance of D2D communication, or the quality of a channel link between them cannot reach requirements, in case that a large number of idle UE users exist in a district, by taking an idle mobile terminal as a relay, the pair of cellular users are assisted in D2D communication; a starting end of a pair of terminal D2D communication cellular users is marked as D1, a receiving end is marked as D2, and the relay is marked as R; when the D1 communicates with the Rs, the D1 reuses frequency resources of communication between the cellular users in the district and base stations, and at the moment, the D1 and the R form a pair of D2D communication.