The invention relates to an ionic liquid precursor and a mesoporous material for supporting the ionic liquid precursor, synthesis and application. A preparation method comprises the following steps of: 1) synthesizing the ionic liquid precursor; 2) synthesizing the mesoporous material for supporting the ionic liquid precursor; and 3) acidizing or alkalifying the synthesized mesoporous material for supporting the ionic liquid precursor according to the requirements so as to obtain a target product. The loading capacity of the mesoporous material for supporting the ionic liquid precursor is relatively adjusted, and a mesoporous material for supporting functionalized ionic liquid can be obtained by further acidizing or alkalifying the material according to the requirements. The amount, strength of acid and alkali, properties, variety and the like of ionic liquid supported on the material are adjustable, so that the material can meet the demand of application such as various acid and alkaline catalytic reactions, chemical adsorption and separation and the like. By the material, the using amount of the ionic liquid is greatly reduced, the better catalytic effect is achieved when the material is applied to aldol condensation reactions, and the recycling of a catalyst can be realized. The kind of material is expected to be used for catalyzing more chemical reactions, and may be applied in the fields of adsorption, separation, ionic conductance and the like.