Background: To effectively make use of deep learning technology automatic feature extraction ability, and enhance the ability of depth learning method to learn and recognize features, this paper proposed a deep learning algorithm combining Deep Convolutional Neural Network (DCNN) trained with an improved cost function and Support Vector Machine (SVM). Methods: The class separation information, which explicitly facilitates intra-class compactness and interclass separability in the process of learning features, is added to an improved cost function as a regularization term to enhance the feature extraction ability of DCNN. Then the improved DCNN is applied to learn the features of SAR images. Finally, SVM is utilized to map the features into output labels. Results: Experiments are performed on SAR image data in Moving and Stationary Target Acquisition and Recognition (MSTAR) database. The experiment results prove the effectiveness of our method, achieving an average accuracy of 99% on ten types of targets, some variants, and some articulated targets. Conclusion: It proves that our method is effective and CNN enjoys a certain potential to be applied in SAR image target recognition. Keywords synthetic aperture radar (SAR) images • automatic target recognition (ATR) • deep convolutional neural Network (DCNN) • support vector machine (SVM) • class separation information