An electronic device comprising: a housing comprising a first surface, a second surface facing away from the first surface, and a side surface, wherein the side surface comprises a first edge, a second edge, a third edge, and a fourth edge; a support member positioned within the housing and including a first ground region; a printed circuit board positioned within the housing and including a second ground region; a first group of switches (321, 322, 323) electrically connecting the first ground region and the second ground region at a first plurality of points; a second group of switches (331, 332, 333) electrically connecting the second ground region of the printed circuit board and a conductive material of the second surface of the housing at a second plurality of points; a first antenna element including at least a portion of a first edge of the housing and electrically connected with the first ground region of the support member; a second antenna element including at least a portion of a second edge of the housing and electrically connected with the second ground region of the printed circuit board; and a wireless communication circuit positioned within the housing and configured to transmit/receive a signal in a first frequency band based on a first electrical path formed through the first antenna element, transmit/receive a signal in a second frequency band based on a second electrical path formed through the second antenna element, set ON/OFF states of the first group of switches to a first arrangement while the signal in the first frequency band is transmitted/received, set the ON/OFF states of the first group of switches to a second arrangement while the signal in the second frequency band is transmitted/received, set ON/OFF states of the second group of switches to a third arrangement while the signal in the first frequency band is transmitted/received, and set the ON/OFF states of the second group of switches to a fourth arrangement while the signal in the second frequency band is transmitted/received, wherein at least one switch of the first group of switches is set to an ON state in each of the first arrangement and the second arrangement, and at least one switch of the second group of switches is set to an ON state in each of the third arrangement and the fourth arrangement. a housing comprising a first surface, a second surface facing away from the first surface, and a side surface, wherein the side surface comprises a first edge, a second edge, a third edge, and a fourth edge; a support member positioned within the housing and including a first ground region; a printed circuit board positioned within the housing and including a second ground region; a first group of switches (321, 322, 323) electrically connecting the first ground region and the second ground region at a first plurality of points; a second group of switches (331, 332, 333) electrically connecting the second ground region of the printed circuit board and a conductive material of the second surface of the housing at a second plurality of points; a first antenna element including at least a portion of a first edge of the housing and electrically connected with the first ground region of the support member; a second antenna element including at least a portion of a second edge of the housing and electrically connected with the second ground region of the printed circuit board; and a wireless communication circuit positioned within the housing and configured to transmit/receive a signal in a first frequency band based on a first electrical path formed through the first antenna element, transmit/receive a signal in a second frequency band based on a second electrical path formed through the second antenna element, set ON/OFF states of the first group of switches to a first arrangement while the signal in the first frequency band is transmitted/received, set the ON/OFF states of the first group of switches to a second arrangement while the signal in the second frequency band is transmitted/received, set ON/OFF states of the second group of switches to a third arrangement while the signal in the first frequency band is transmitted/received, and set the ON/OFF states of the second group of switches to a fourth arrangement while the signal in the second frequency band is transmitted/received, wherein at least one switch of the first group of switches is set to an ON state in each of the first arrangement and the second arrangement, and at least one switch of the second group of switches is set to an ON state in each of the third arrangement and the fourth arrangement.