In everyday life, a macroscopic valve is a device with a movable control element that regulates the flow of gases or liquids by blocking and opening passageways. Construction of such a device on the nanoscale level requires (i) suitably proportioned movable control elements, (ii) a method for operating them on demand, and (iii) appropriately sized passageways. These three conditions can be fulfilled by attaching organic, mechanically interlocked, linear motor molecules that can be operated under chemical, electrical, or optical stimuli to stable inorganic porous frameworks (i.e., by self-assembling organic machinery on top of an inorganic chassis). In this article, we demonstrate a reversibly operating nanovalve that can be turned on and off by redox chemistry. It traps and releases molecules from a maze of nanoscopic passageways in silica by controlling the operation of redox-activated bistable rotaxane molecules tethered to the openings of nanopores leading out of a nanoscale reservoir.