Hazards associated with highly dangerous pollutants/contaminants in water, air, and land resources, as well as food, are serious threats to public health and the environment. Thus, it is imperative to detect or decontaminate, as risk-control strategies, the possible harmful substances sensitively and efficiently. In this context, due to their capacity to be specifically designed for various types of hazardous compounds, the synthesis and use of molecularly imprinted polymers (MIPs) have become widespread. By molecular imprinting, affinity sites with complementary shape, size, and functionality can be created for any template molecule. MIPs' unique functions in response to external factors have attracted researchers to develop a broad range of MIP-based sensors with increased sensitivity, specificity, and selectivity of the recognition element toward target hazardous compounds. Therefore, this paper comprehensively reviews the very recent progress of MIPs and smart polymer applications for sensing or decontamination of hazardous compounds (e.g., drugs, explosives, and biological or chemical agents) in various fields from 2020 to 2024, providing researchers with a rapid tool for investigating the latest research status.