The three layers of CNN are convolutional, pooling, and fully connected layers. These layers learn to identify various attributes of an input image.