A rapid synthesis of carbamazepine (CBZ) magnetic molecularly imprinted polymer (MMIP) was proposed based on reflux precipitation polymerization method. The synthesis time for the formation of MIP coating on MMIP was shortened to less than 4 h. The characterization of MMIP demonstrates the successful synthesis of the imprinted layer. The adsorption selectivity of MMIP was systematically evaluated and showed fast selective recognition for CBZ. The MMIP based magnetic solid-phase extraction (MSPE) combined with UHPLC-MS/MS was developed, and its feasibility was validated in four complex matrices of environmental water, sediment, fish muscle and liver. It was successfully applied for the analysis of environmental water, sediment, and different fish tissues. Four environmental water samples from different sampling sites were found to contain CBZ at concentrations < LOD or LOQ, while the sediment samples collected at the same location did not contain CBZ. Two out of three wild snakeheads were found to contain CBZ, and the liver showed the highest residue. The study of drug exposed snakeheads indicate CBZ tends to accumulate in liver, followed by brain, heart and kidneys, and finally muscle and gills. The proposed method displays high potential for analyzing CBZ in complex environmental and biological samples.