Dual-controlled nanoparticles (DCNPs) are synthesized by attaching two different types of mol. machines, light-responsive nanoimpellers and pH-responsive nanovalves, to different regions of mesoporous silica nanoparticles. Nanoimpellers are based on azobenzene derivs. that are tethered to the nanopore interiors, while nanovalves are based on pseudorotaxanes that are tethered to the nanoparticle surfaces. The different mol. machines operate through sep. mechanisms to control the release of guest mols. that are loaded into the nanopores. When used in conjunction with one another, a sophisticated controllable release system behaving as an AND logic gate is obtained.