A versatile microfluidic device is described that enables the crystallization of an enzyme using the counter-diffusion method, the introduction of a substrate in the crystals by soaking, and the 3D structure determination of the enzyme:substrate complex by a serial analysis of crystals inside the chip at room temperature.