Optogenetics, the selective excitation or inhibition of neural circuits by light, has become a transformative approach for dissecting functional brain microcircuits, particularly in in vivo rodent models, owing to the expanding libraries of opsins and promoters. Yet there is a lack of versatile devices that can deliver spatiotemporally patterned light while performing simultaneous sensing to map the dynamics of perturbed neural populations at the network level. We have created optoelectronic actuator and sensor microarrays that can be used as monolithic intracortical implants, fabricated from an optically transparent, electrically highly conducting semiconductor ZnO crystal. The devices can perform simultaneous light delivery and electrical readout in precise spatial registry across the microprobe array. We applied the device technology in transgenic mice to study light-perturbed cortical microcircuit dynamics and their effects on behavior. The functionality of this device can be further expanded to optical imaging and patterned electrical microstimulation.