The electronic device includes a first housing part, a second housing part rotatably coupled to the first housing part, a first antenna module located in the first housing part, a first
wireless communication circuit disposed in the first housing part, and electrically connected to the first antenna module, a second antenna module located in the second housing part, a second
wireless communication circuit disposed in the second housing part, and electrically connected to the second antenna module, a first link
assembly configured to rotate the first antenna module, and a second link
assembly configured to rotate the second antenna module. While the first housing part rotates with respect to the second housing part, a
radiation direction of the first antenna module and a
radiation direction of the second antenna module face each other. The first
wireless communication circuit is configured to transmit or receive a
radio frequency (RF)
signal through the first antenna module. The second wireless communication circuit is configured to receive or transmit the RF
signal through the second antenna module.