Method and device for selecting relay in wireless communication system

An embodiment of the present invention relates to a method of selecting, by a first UE, a relay in a proximity service (ProSe) in a wireless communication system, the method including the steps of transmitting a UE-to-Network Relay discovery message; selecting a second UE as the UE-to-Network Relay; setting a connection for direct communication with the second UE; and transmitting a registration request message to a group communication service application server (GCS AS) through the second UE, wherein when the UE-to-Network Relay discovery message includes UE-to-UE Relay related request information, the UE-to-UE Relay related information is received from the second UE and the second UE is selected as the UE-to-UE Relay based on the UE-to-UE Relay related information.