As a conjugated and unsymmetric building block composed of an electron-poor seven-membered sp 2 carbon ring and an electron-rich five-membered carbon ring, azulene and its derivatives have been recognized as one of the most promising building blocks for novel electronic devices due to its intrinsic redox activity. By using 1,3,5-tris(4-aminophenyl)-benzene and azulene-1,3-dicarbaldehyde as the starting materials, an azulene(Azu)-based 2D conjugated covalent organic framework, COF-Azu, is prepared through liquid-liquid interface polymerization strategy for the first time. The as-fabricated Al/COF-Azu/indium tin oxide (ITO) memristor shows typical non-volatile resistive switching performance due to the electric filed induced intramolecular charge transfer effect. Associated with the unique memristive performance, a simple convolutional neural network is built for image recognition. After 8 epochs of training, image recognition accuracy of 80 % for a neutral network trained on a larger data set is achieved.Ultrathin and uniform two-dimensional (2D) conjugated covalent organic frameworks (COFs) exhibit great application potential in e.g. optoelectronics, catalysis, drug delivery, sensors, energy storage, membrane separation and photonics due to their favorable intrinsic carrier mobility, tunable layered porous structures and functions. [1][2][3][4][5][6][7][8][9] The common linkers used for constructing 2D COFs are mainly the C=C, CÀ N, C=N, BÀ O and B=N bonds. However, it's still a