An X-ray imaging apparatus includes a controller configured or programmed to perform control to change an amount of assist from a drive in manually moving a moving body based on at least one of operation of an operation button configured to receive an operation for moving the moving body or an operation for aligning the moving body and a current position and target position of the moving body.