Ultrawide bandgap semiconductor technologies offer potentially revolutionary advances in the rapidly developing areas of quantum communication, short wavelength optics, smart energy conversion, and biomedical interfaces. These strongly demanding technologies can be partly constructed using conventional devices but new hybrid architectures are needed to overpass current performances and add functionalities. Here, a new concept based on the specific properties of a diamond pn junction combined with both an electric and optical control of the depletion region is proposed. Using this junction as a gate in a junction field effect transistor, a proof of concept of a non‐volatile diamond photo‐switch is reported. A diamond pn junction made with nitrogen deep donors in the n‐side is demonstrated to be optically activated thanks to visible light. The n‐type diamond gate is almost devoid of free carriers in the dark and thus insulating. Illuminating the device renders the standard electrical gate control of the transistor efficient. Without illumination, the device is frozen, keeping a permanent memory of the current state. This new way of operating the device opens numerous possibilities to store and transfer information or energy with applications in the field of electrical aircraft or aerospace electronics, power electronics, bio‐electronics, and quantum communication.