• The formation mechanism, polymerization process, sensing strategies, and applications of MIP- and IIP-based chemical sensors were introduced. • The latest studies on MIP- and IIP-based chemical sensors were involved. • The challenges and possible solutions were discussed. Chemical assays play an important role in environmental monitoring, disease diagnosis, and food safety, which rely on the design of sensitive, specific, and low-cost chemical sensors. Molecularly and ionically imprinting polymers (MIPs and IIPs) are synthetic polymer-based materials that mimic antibodies to bind with targets with high selectivity and strong affinity. Their unique properties make them promising to be chemical sensors for the anticipated chemical assays. Herein, we overview the attractive chemical assay platforms made by MIPs and IIPs. All aspects of the MIP- and IIP-based chemical sensors, including the formation mechanism, polymerization process, sensing strategies, and applications, were discussed in detail. Finally, we point out the current challenges. We believe this review can provide helpful knowledge and inspire researchers to design novel MIP- and IIP-based chemical sensors that match actual applications. Abbreviations: 3-AAPBA, 3-(acrylamido) phenylboronic acid; 3-MT, 3-methoxytyramine; 4-NP, 4-nitrophenol; 4-VP, 4-vinylpyridine; 5-HT, 5-hydroxytryptamine; AA, ascorbic acid; AIBN, azobisisobutyronitrile; APO-type, immature nanocavity; APTES, (3-Aminopropyl)triethoxysilane; BPA, bisphenol A; BSA, bovine serum albumin; CD, carbon dot; CDNF, cerebral dopamine neurotrophic factor; CIP, cell-imprinted polymer; CIT, citrinin; CLIA, chemiluminescent immunoassay; COVID-2019, Coronavirus Disease of 2019; CPS, carboxylic-terminated polystyrene; CS, chitosan; CTAB, cetyl trimethyl ammonium bromide; DA, dopamine; DET, direct electron transfer; DHPG, 3,4-dihydroxyphenylethanol; DLS, dynamic light scattering; DOPAC, 3,4-dihydroxyphenylacetic acid; DTA, N-(1,4-dioxo-1,2,3,4-tetrahydrophthalazin-5-yl)acrylamide; DVB, divinylbenzene; ECLS, electrochemiluminescence sensor; EDTA, ethylenediamine tetraacetic acid disodium salt; ELISA, enzyme-linked immunosorbent assay; EP, epinephrine; Ex, excitation; Em, emission; FL, fluorescence; FL-AuNPs, flower-like gold nanoparticles; FSA, 4-formylsalicylic acid; g-CdTe, green-emitting CdTe; GCE, glassy carbon electrode; GQD, graphene quantum dot; Glu, glutamic acid; Hb, hemoglobin; HD, hexadecane; HOLO-type, mature nanocavity; HOMO, highest occupied molecular orbital; HAS, human serum albumin; HVA, homovanillic acid; ICPTS, 3-isocyanatopropyltriethoxysilane; IP, imprinted polymer; IIHB, ion-imprinted hydrogel bead; IIP, ionically imprinted polymer; IOHP, inverse opal hydrogel particle; LC, λ-cyhalothrin; LOD, limit of detection; LUMO, lowest unoccupied molecular orbital; Lyz, lysozyme; MBA, 4-mercaptobenzoic acid; MCNTs, magnetic carbon nanotubes; MCNTs@D-EMIP, MCNTs@MPS coated with dual-template epitope imprinting molecular polymer; MCNTs@MPS, MCNTs@SiO 2 coated with MPS; MCNTs@SiO 2 , MCNTs coated with a silicon layer; MHPG, 3-methoxy-4-hydroxyphenylglycol; MIP, molecularly imprinted polymer; MMIP, magnetic molecularly imprinted polymer; MOF, metal–organic framework; MPA, 3-mercaptopropionic acid; MPS, 3-methacryloyloxypropyltrimethoxysilane; NIHB, non-imprinted hydrogel bead; NIP, non-imprinted polymer; NP, nanoparticle; norepinephrine; PABA, P-aminobenzoic acid; Pc, phthalocyanine; Pd-imp@CDs-Pc, palladium ion-imprinted organosiloxane nanoparticles with both phthalocyanine dye and carbon dot; PDMS, polydimethylsiloxane; PS, polystyrene; PVB, polyvinyl butyral; Pyr, pyruvic acid; QD, quantum dot; r-CdTe, red-emitting CdTe; R ct , charge transfer resistance; SCCB, silica colloidal crystal bead; SDS, sodium dodecyl sulfate; SEM, scanning electron microscope; SPR, surface plasmon resonance; SWV, square wave voltammetry; TCID50, tissue culture infectious dose 50; TEGDMA, triethylene glycol dimethacrylate; TEOS, tetraethyl orthosilicate; UA, uric acid; UV, ultraviolet; VIP, virus-imprinted polymer; VMA, vanillylmandelic acid. [ABSTRACT FROM AUTHOR]