The intrinsic brittleness of inorganic semiconductors prevents them from extended engineering applications under extreme condition of high temperature and pressure, making it essential to improve their ductility. Here, we applied the constrained density functional theory to examine the relationship between plastic deformation and photonic excitation in sphalerite ZnS and related II-IV semiconductors. We find that ZnS transforms from a dislocation dominated deformation mode in the ground state to a twin dominated deformation mode with bandgap electronic excitations, leading to brittle failure under light illumination. This agrees very well with recent mechanical experiments on single crystal ZnS.More interesting, we predict that the ZnTe and CdTe display the opposite mechanical behavior compared to ZnS, exhibiting ductility close to metallic level with bandgap illumination, but typical brittle failure in the dark state. Our results provide a general approach to design more shapeable and tougher semiconductor devices by controlling exposure to electronic excitation.Inorganic semiconductors have attracted enormous attention because of their widespread application in electronic devices, light-emitting diodes, thermoelectrics, and photovoltaic cells [1,2]. One of the main limitations in inorganic semiconductors is their brittle mechanical behavior. Fracture or yielding often occurs in these materials upon very small-scale strain induced by external stress [3][4][5]. Therefore, understanding, designing, and controlling of the mechanical properties of inorganic semiconductors are essential for their modern engineering applications. A very recent experimental study showed that sphalerite ZnS, a representative II-VI semiconductor, displays a brittle character under conditions of light irradiation[6], but, it becomes extraordinarily plastic when the deformation is performed in complete darkness. In addition, the brittle