The invention provides an optical image and SAR image automatic registration method within multilevel multi-feature constraint. The optical image and SAR image automatic registration method within the multilevel multi-feature constraint comprises the following steps that optical images and SAR images are preprocessed, multi-scale level set segmentation is conducted, and a plane segmentation result is obtained; when similar plane targets exist, a coordinate set of centroid points of areas seemingly provided with the same name is calculated; when similar plane targets do not exist, multi-scale analysis is conducted on the images by means of wavelet transformation, extraction of lower-layer linear characteristics and point set matching are conducted on the thickest image, and lower-layer registration transformation parameters are extracted; high-layer linear characteristics is extracted, a control-point matching degree function is defined according to the lower-layer transformation parameters, and high-layer point set matching is conduced; finally, a matched point pair is precisely judged out through the KNN image from the structure, a wrong matched point pair is eliminated, transformation parameters of the matched point pair are obtained according to a polynomial transformational model, and a final registration result is obtained.