A method of controlling transmission power of a terminal performing device-to-device (D2D) communication in a wireless communication system, the method comprising: receiving power control information corresponding to radio resources used by the terminal for D2D communication data from a base station, determining The first transmission power of the radio resource to be used by the terminal for D2D communication among the radio resources, and transmitting data for D2D communication with the determined first transmission power by using the radio resource to be used by the terminal for D2D communication . The present disclosure relates to a communication method and system for converging a 5th generation (5G) communication system for supporting higher data rates beyond a 4th generation (4G) system and a technology for the Internet of Things (IoT). The present disclosure can be applied to smart services based on 5G communication technology and IoT-related technologies, such as smart home, smart building, smart city, smart car, connected car, health care, digital education, smart retail, security and security services.