An X-ray apparatus includes a C-arm for adjusting a position of an X-ray source a table on which an object is positioned a data obtaining unit for obtaining position information of a target in the object and a control unit for moving at least one of the C-arm and the table to allow tracking of the target based on the position information when capturing an X-ray image.