An antenna alignment method, wherein a first device has N AT transmit beams and N AR receive beams, a second device has N BT transmit beams and N BR receive beams, each receive beam of the first device is fixed, each receive beam of the second device is fixed, the receive beams of the first device receive signals from the transmit beams of the second device, the receive beams of the second device receive signals from the transmit beams of the first device, and the method comprises: transmitting, by the first device, a signal to the second device according to a first cycle, traversing switching of N AT transmit beams according to a first beam mode order, and traversing switching of N BT frequencies according to a first frequency mode order, wherein a transmit beam and a frequency for transmitting a signal by the first device are unchanged in a same first cycle; transmitting, by the second device, a signal to the first device according to the first cycle, traversing switching of N BT transmit beams according to a second beam mode order, and traversing switching of N AT frequencies according to a second frequency mode order, wherein a transmit beam and a frequency for transmitting a signal by the second device are unchanged in a same first cycle; wherein the first beam mode order corresponds to the second frequency mode order and the second beam mode order corresponds to the first frequency mode order; counting, by the second device, a receive signal power in each first cycle, and obtaining a receive signal power corresponding to each frequency by means of calculation according to the second frequency mode order, to learn that a receive signal power corresponding to an Rth frequency is the highest; transmitting, by the second device, a signal to the first device according to the first cycle, traversing switching of N BT transmit beams according to the second beam mode order, and traversing switching of N AT frequencies according to the second frequency mode order, wherein a transmit beam and a frequency for transmitting a signal by the second device are unchanged in a same first cycle, and the Rth frequency of the N AT frequencies is a specified frequency; determining, by the first device, a receive signal frequency in each first cycle, and obtaining a receive signal frequency corresponding to each beam according to the first beam mode order, to learn that a receive signal frequency corresponding to an Rth beam is the specified frequency; and permanently using, by the first device, a beam whose receive signal frequency is the specified frequency as a transmit beam. transmitting, by the first device, a signal to the second device according to a first cycle, traversing switching of N AT transmit beams according to a first beam mode order, and traversing switching of N BT frequencies according to a first frequency mode order, wherein a transmit beam and a frequency for transmitting a signal by the first device are unchanged in a same first cycle; transmitting, by the second device, a signal to the first device according to the first cycle, traversing switching of N BT transmit beams according to a second beam mode order, and traversing switching of N AT frequencies according to a second frequency mode order, wherein a transmit beam and a frequency for transmitting a signal by the second device are unchanged in a same first cycle; wherein the first beam mode order corresponds to the second frequency mode order and the second beam mode order corresponds to the first frequency mode order; counting, by the second device, a receive signal power in each first cycle, and obtaining a receive signal power corresponding to each frequency by means of calculation according to the second frequency mode order, to learn that a receive signal power corresponding to an Rth frequency is the highest; transmitting, by the second device, a signal to the first device according to the first cycle, traversing switching of N BT transmit beams according to the second beam mode order, and traversing switching of N AT frequencies according to the second frequency mode order, wherein a transmit beam and a frequency for transmitting a signal by the second device are unchanged in a same first cycle, and the Rth frequency of the N AT frequencies is a specified frequency; determining, by the first device, a receive signal frequency in each first cycle, and obtaining a receive signal frequency corresponding to each beam according to the first beam mode order, to learn that a receive signal frequency corresponding to an Rth beam is the specified frequency; and permanently using, by the first device, a beam whose receive signal frequency is the specified frequency as a transmit beam.