A method for eliminating motion artifacts in digital subtraction angiography comprises the following steps: step 1, reading; step 2, selecting points; step 3, constructing a DSA space body; step 4, carrying out space slicing; step 5, connecting tracks; step 6, analyzing the space motion characteristics of DSA pixel; step 7, carrying out triangulation; step 8, carrying out affine transformation; step 9, carrying out space winding; step 10, optimizing; step 11, registering; step 12, carrying out grey correction; step 13, carrying out logarithmic subtraction angiography. The invention belongs to the technology of image processing. The method of space analysis is used so that the registering of DSA image is more accurate, thereby efficiently eliminating motion artifacts and obtaining clear angiography images. Thus, the diagnostic accuracy of a doctor is improved, and the working efficiency is increased.