An X-ray imaging apparatus is provided. The apparatus includes an X-ray sensor unit that detects X-rays, and a control unit that controls driving of an X-ray generator and the X-ray sensor unit. The control unit performs alignment imaging for imaging a still image of a subject. The still image is used as a reference for alignment of at least one of the X-ray generator and the X-ray sensor unit. After the alignment imaging, the control unit performs main imaging for imaging a moving image of the subject. The alignment imaging and the main imaging are performed under the same driving condition of the X-ray sensor unit.