The invention relates to a 4D intelligent aerogel and a preparation method thereof. The preparation method is characterized by regulating the shape memory property and regulating the microstructure, the density and the hydrophilicity. The 4D intelligent aerogel is prepared by a one-step crosslinking vacuum freeze-drying process, and the technical problems of complexness and poor controllability ofexisting intelligent aerogel preparation methods are solved. The preparation method has the advantages of simple preparation process, low cost, good controllability, strong universality, and easinessin modification and compounding of a material. The 4D aerogel has the advantages of strong controllability, good structural designability, good density and hydrophilicity controllability and good mechanical properties, can be used in fields of marine development, intelligent drugs, environmental protection, porous electrodes, intelligent adsorption, intelligent artificial enzymes, intelligent sound absorption, new energy development, intelligent protection, building materials, lightweight structural materials, thermal insulation materials, flame retardant materials, shock absorbing materials,reinforced framework materials, energy storage devices and aerospace, ad provides a way for studying multifunctional materials.