The ordered one-dimensional nanochannels found in covalent organic frameworks (COFs) could render them able to conduct protons. However, the frameworks' instability in acid has thus far precluded any practical implementations. Now, a strategy to overcome this instability has enabled proton conduction using a COF for the first time.