Hydrogels are three-dimensional (3D) polymer networks that do not dissolve in water but retain large amounts of liquids. Due to this advantageous property, hydrogels are particularly promising material platforms for both biomedical and environmental applications, as they can survive in bodily fluids or in wet natural environments without dissipating.