The generation of fake images and the process of technology is developing quickly, which has generated great concern about its impact on society. To effectively identify the fake image, this article introduces a deep learning-based identification method. This article uses a convolutional neural network (CNN) neural network to construct a model for machine learning image recognition and lets it learn a dataset of hundreds of real and fake pictures to let it complete tasks that are difficult for humans to complete. the use of deep learning to solve this problem has the following advantages: the results can be observed after data input, which is conservative and fast, and there is no need to manually design rules as Deep learning methods can optimise the loss function to learn the rules, mining potential features of data, with strong representation ability. Using this method, the accuracy result is over 60%. This paper proves a machine can learn and recognise real and fake pictures, which is specifically inspiring that learning-based methods can also solve the challenging problem of images.