Azobenzenes are fascinating molecular machines that can reversibly transform between two isomeric forms by an external stimulus. Diazocine, a type of bridged azobenzene, has been shown to possess enhanced photoexcitation properties. Due to the distortion caused by the ethyl bridge in the E-isomer, the Z-form becomes the thermodynamically stable configuration. Despite a comprehensive understanding of its photophysical properties, there is still much to learn about the behavior of diazocine on a metal surface. Here we show the operando photoswitching of diazocine molecules deposited directly on a Au(111) surface using scanning tunneling microscopy. Molecules were shown to aggregate into disordered islands with edge sites being susceptible to photon-induced movement. A few molecules were shown to undergo directional movement under UV irradiation with the motion reversed under blue light exposure. These findings contribute new insight into the activity of single and ensemble molecular systems toward purposefully guided motion.