Hydrogels exhibit excellent moldability, biodegradability, biocompatibility, and extracellular matrix-like properties, which make them widely used in biomedical fields. Because of their unique three-dimensional crosslinked hydrophilic networks, hydrogels can encapsulate various materials, such as small molecules, polymers, and particles; this has become a hot research topic in the antibacterial field. The surface modification of biomaterials by using antibacterial hydrogels as coatings contributes to the biomaterial activity and offers wide prospects for development. A variety of surface chemical strategies have been developed to bind hydrogels to the substrate surface stably. We first introduce the preparation method for antibacterial coatings in this review, which includes surface-initiated graft crosslinking polymerization, anchoring the hydrogel coating to the substrate surface, and the LbL self-assembly technique to coat crosslinked hydrogels. Then, we summarize the applications of hydrogel coating in the biomedical antibacterial field. Hydrogel itself has certain antibacterial properties, but the antibacterial effect is not sufficient. In recent research, in order to optimize its antibacterial performance, the following three antibacterial strategies are mainly adopted: bacterial repellent and inhibition, contact surface killing of bacteria, and release of antibacterial agents. We systematically introduce the antibacterial mechanism of each strategy. The review aims to provide reference for the further development and application of hydrogel coatings.