Method for supporting d2d communication to which mimo technology is applied and device therefor

Disclosed is a method for supporting device-to-device (D2D) communication to which multiple-input and multiple-output (MIMO) technology is applied in a wireless communication system. The method for supporting D2D communication can comprise the steps of: receiving, from a transmission end, a first reference signal of a D2D resource pool within an uplink resource and a resource configuration related to transmitting and receiving of D2D data; transmitting, to the transmission end, the first reference signal related to at least one first antenna port of a D2D terminal through an uplink resource according to the resource configuration; receiving, through the uplink resource, D2D data and a second reference signal from at least one second antenna port among a plurality of second antenna ports of the transmission end determined on the basis of the first reference signal; and decoding the received D2D data on the basis of a precoding applied to the second reference signal.