The pull-off adhesion force was measured by atomic force microscopy in sphere-plate geometry in water where a capillarylike behavior develops due to nanobubbles and was compared to the corresponding capillary adhesion in air. The sphere and the plate were coated with gold, and the pull-off adhesion force was measured as a function of the evolving surface roughness of the plate, and the retraction velocity of the interacting surfaces. In absolute magnitude, the pull-off force in air is larger than that in liquid by an order of magnitude or more, but in both cases, the pull-off force follows a monotonic decrease with increasing roughness. However, the relative decrement of the adhesion force in water was approximately 300%, and significantly higher than that in air for the same change of the rms roughness in the range ∼ 7-14 nm. Finally, the adhesion force in water shows a relatively complex dependence on the retraction velocity of the interacting surfaces as the roughness increases due to possible deformation of the nanobubbles and the bridges they form between the surfaces.