Disclosed herein are an X-ray imaging apparatus for optimizing radiography conditions upon radiography, and a control method thereof. The X-ray imaging apparatus includes: an input device configured to receive information about a patient; and a controller configured to conduct a search for a previously obtained X-ray image related to the information about the patient and a previously set radiography condition related to the information about the patient, and to set a radiography condition for a main-shot based on a result of the search.