Ionic liquid-functionalized SBA-15 (IL-SBA-15) was prepared by cocondensation of functionalized ionic liquid (IL) and tetraethoxysilane. IL was firstly synthesized using microwave and the experimental parameters were optimized. Furthermore, IL-SBA-15 was introduced into the fabrication of electrochemical sensors. It was found that these sensors exhibited good performance to the simultaneous determination of dihydroxybenzene isomers or metal ions. The good sensitivity and stability presented the promising application of IL-SBA-15 in the application of electrochemistry.