Hydrogels are ideal for antifouling materials due to their high hydrophilicity and low adhesion properties. Herein, poly(ionic liquid) hydrogels integrated with zwitterionic copolymer-functionalized galliumbased liquid metal (PMPC-GLM) microgels were successfully prepared by a one-pot reaction. Poly(ionic liquid) hydrogels (IL-Gel) were obtained by chemical cross-linking the copolymer of ionic liquid, acrylic acid, and acrylamide, and the introduction of ionic liquid (IL) significantly increased the cross-linking density; this approach consequently enhanced the mechanical and antiswelling properties of the hydrogels. The swelling ratio of IL-Gel decreased eight times compared to the original hydrogels. PMPC-GLM microgels were prepared through grafting the zwitterionic polymer PMPC onto the GLM nanodroplet surface, which exhibited efficient antifouling performance attributed to the bactericidal effect of Ga 3+ and the antibacterial effect of the zwitterionic polymer layer PMPC.