Sandcastle worms have developed protein-based adhesives, which they use to construct protective tubes from sand grains and shell bits. A key element in the adhesive delivery is the formation of a fluidic complex coacervate phase. After delivery, the adhesive transforms into a solid upon an external trigger. In this work, a fully synthetic in situ setting adhesive based on complex coacervation is reported by mimicking the main features of the sandcastle worm's glue. The adhesive consists of oppositely charged polyelectrolytes grafted with thermoresponsive poly(N-isopropylacrylamide) (PNIPAM) chains and starts out as a fluid complex coacervate that can be injected at room temperature. Upon increasing the temperature above the lower critical solution temperature of PNIPAM, the complex coacervate transitions into a nonflowing hydrogel while preserving its volume—the water content in the material stays constant. The adhesive functions in the presence of water and bonds to different surfaces regardless of their charge. This type of adhesive avoids many of the problems of current underwater adhesives and may be useful to bond biological tissues.