Water confined to nanopores such as carbon nanotubes (CNTs) exhibits different states, enabling the study of solidlike water nanotubes (WNTs) and the potential application of their properties due to confined effects. Herein, we report the interfacial interaction and particular stabilized boundaries of confined WNTs within CNTs and boron nitride nanotubes (BNNTs) using first-principles calculations. We demonstrate that the intermolecular potential of nanotube walls exerts diameter-dependent additive or subtractive van der Waals (vdW) pressure on the WNTs, altering the phase boundaries. Our results reveal that the most stable WNT@CNT is associated with a CNT diameter of 10.5 Å. By correlating the stability of WNTs with interfacial properties such as the vdW pressure and vibrational phonon modes of confined WNTs, we decode and compare various synergies in water interaction and stabilized states within the CNTs and BNNTs, including interfacial properties of WNT@BNNTs that are more significant than those of WNT@CNTs. Our results suggest that the transition of a water tube to an ice tube is strongly dependent on the diameter of the confining CNT or BNNT, providing new insights on leveraging the interfacial interaction mechanism of confined WNTs and their potential application for fabricating nanochannels and nanocapacitors.