Aiming at the shortcomings of traditional elliptic contour grinding methods, such as large grinding roughness and poor contour accuracy, a multi-axis mechanical grinding method based on algebraic geometry is proposed. This method studies the first attempt of elliptic contour. The process includes selecting suitable multi-axis grinding tools and selecting appropriate grinding methods according to grinding process. Using specific workpieces, grinding path planning, motion attitude determination and error compensation based on algebraic geometry for multi-axis mechanical grinding are carried out. The results show that compared with the traditional grinding method, the device has the smallest surface roughness, the contour radian is closer to the expected results, and has higher performance, which solves the grinding defects.