Corrosion and biological fouling present notable challenges for the growth of the marine industry. Since medetomidine (MM) has been shown to induce hyperactivity and interfere with barnacle larvae settlement, we synthesized MM and its analogues, 4-(1-(3,4-dimethyl phenyl)ethyl)-1H-imidazole (MM-2), 5-(1-phenylethyl)-1H-imidazole (MM-3) and 4-(1-(3,4-dichlorophenyl)ethyl)-1H-imidazole (MM-4), to explore their antifouling effectiveness in marine settings. The anticorrosive epoxy resin (EP) was integrated with these antifouling medetomidines to develop coatings that offer both antifouling and anticorrosion benefits. Among the compounds assessed, dichlorosubstituted medetomidine analogue (MM-4) stood out as the most performing candidate. Compared to EP/MM, the inhibition rates of EP/MM-4 against Escherichia coli and Staphylococcus aureus increased by 24.69 % and 39.28 %, respectively. Moreover, EP/MM-4 showed impressive activities against marine bacteria Vibrio fescheri and Cyclotella cryptica, with 91.93 % and 91.21 % inhibition rates, while maintaining stability in the coating by the fourth day. Notably, the EP/MM-4 coating not only offers effective antibacterial and algal resistance, but also help prevents large organisms from deposition in seawater for up to 90 d. The impedance value of MM-4 remains at 6500 Ω·cm2, demonstrating excellent anticorrosion performance, with a continuous anticorrosion efficiency of 97.21 % for 24 h. This research holds great promise for practical application in marine and industrial facilities has broad prospects.