An electronic device is provided, which includes a housing; a conductive member forming a part of the housing or disposed on an inside of the housing; a communication circuit electrically connected to a first region of the conductive member; a conductive pattern electrically connected to a second region of the conductive member; and a switching circuit disposed on an electric path between the conductive pattern and the conductive member that controls a switching operation to selectively, electrically connect and disconnect the conductive pattern to and from the conductive member.