A method for performing handover by a first user equipment during a direct communication with a second user equipment in a wireless communication system supporting the direct communication, the method comprising: sensing, by the first user equipment, a handover state in consideration whether link quality between the first user equipment and the second user equipment decreases to a predetermined threshold or less while performing the direct communication with the second user equipment; broadcasting, by the first user equipment to neighboring devices, a request message for requesting transmission of a reference signal, when the link quality between the first user equipment and the second user equipment decreases to the predetermined threshold or less; notifying, by the first user equipment to the second user equipments, that the request message for requesting transmission of the reference signal is broadcasted by the first user equipment; receiving, by the first user equipment from the second user equipment, a list of neighboring devices having a channel quality value equal to or greater than a threshold for the second user equipment; measuring, by the first user equipment, channel quality for the devices included in the list of neighboring devices using the reference signal transmitted from the devices included in the list of the neighboring devices; determining, by the first user equipment, a relay device among the devices included in the list of the neighboring devices based on a result of measuring channel quality for the devices included in the list of the neighboring devices; transmitting, by the first user equipment to the relay device, a handover request message in order to start handover to the relay device; receiving, by the first user equipment from the relay device, a handover complete message indicating that resource allocation has been completed; and performing, by the first user equipment, communication with the second user equipment via the relay device using resources allocated by the relay device. sensing, by the first user equipment, a handover state in consideration whether link quality between the first user equipment and the second user equipment decreases to a predetermined threshold or less while performing the direct communication with the second user equipment; broadcasting, by the first user equipment to neighboring devices, a request message for requesting transmission of a reference signal, when the link quality between the first user equipment and the second user equipment decreases to the predetermined threshold or less; notifying, by the first user equipment to the second user equipments, that the request message for requesting transmission of the reference signal is broadcasted by the first user equipment; receiving, by the first user equipment from the second user equipment, a list of neighboring devices having a channel quality value equal to or greater than a threshold for the second user equipment; measuring, by the first user equipment, channel quality for the devices included in the list of neighboring devices using the reference signal transmitted from the devices included in the list of the neighboring devices; determining, by the first user equipment, a relay device among the devices included in the list of the neighboring devices based on a result of measuring channel quality for the devices included in the list of the neighboring devices; transmitting, by the first user equipment to the relay device, a handover request message in order to start handover to the relay device; receiving, by the first user equipment from the relay device, a handover complete message indicating that resource allocation has been completed; and performing, by the first user equipment, communication with the second user equipment via the relay device using resources allocated by the relay device.