Responsive wormlike micelles, innovative soft materials with stimuli-tunable rheological properties, have recently attracted significant attention. Herein, the construction of dual responsive wormlike micelles exhibiting photo- and pH-stimulated viscoelastic behaviors is demonstrated from a cationic surfactant 4,4′-bis(trimethylammonium-6-hexyloxy) azobenzene bromide (BTHA), and anionic surfactant sodium oleate (NaOA). Rheological measurement, dynamic light scattering, and cryogenic transmission electron microscopy were used to explore the dual-responsive behaviors of wormlike micelles system systematically. The results show that the self-assembly structures and viscoelastic behaviors of the mixed system can be regulated by light irradiation and pH. With BTHA concentration ≥ 20 mM, the mixed solutions show a shear-thinning behavior, implying the formation of wormlike micelles. Under UV light irradiation at 365 nm, the photoisomerization of BTHA from trans to cis affects the molecular packing at micellar interface, that leads to the aggregate structures transformation from wormlike micelles into spherical micelles, accompanied by an apparent decrease in zero-shear viscosity of the mixed solution by three orders of magnitude. The transformation is reversible in the presence of Vis light (420 nm). Moreover, the pH-responsive behavior could also be reversibly switched by adding HCl or NaOH, due to the protonation of NaOA molecules. The interconversion of gel-like solution and water-like fluid could occur by adjusting pH values between 10.26 and 8.95, which reflect variations in microstructures and was ascertained the transformation between wormlike micelles and spherical micelles by cryo-TEM. The relationship of temperature and the structural relaxation time (τR) follows the Arrhenius law, resulting from the decreasing micellar contour length. This work will enhance our understanding of the multi-responsiveness of intelligent materials and hold great promising applications in biomedicine, oil industry, smart molecular device, and sensors.