A porphyrin silicon nanowire (Si-NW) hybrid field-effect transistor is introduced. The hybrid device has separate electrical and optical gates surrounding the Si-NW channel. Porphyrin, a component of chlorophyll, is employed as an optical gate to modulate the potential of the Si-NW channel. Due to the independently formed hybrid gates, both optical and electrical excitation can effectively modulate the device. The exposed porphyrin optical gate responds to the optical excitation, and independently formed electrical gates respond to the electrical excitation. Charge transfer characteristics between a semiconductor channel and the porphyrin optical gate are deeply investigated. Optical, electrical, and opto-electrical excitation methods are employed to analyze the charging and discharging behaviors. Of these methods, opto-electrical excitation enables the strongest charge transfer because the inversion electron formation by an electrical pulse and the photoinduced charge transfer by an optical stimulus are affected simultaneously. Discharging processes, such as rapid discharging, exponential detrapping, and the formation of metastable states are also analyzed.