Myoglobin and hemoglobin were encapsulated in wet, nanoporous silica gels. A rigorous evaluation of the effect of the encapsulation on protein dynamics and function was carried out by measuring the kinetics of carbon monoxide rebinding after nanosecond laser flash-photolysis with transient absorption detection, and the oxygen affinity with absorption microspectrophotometry. The time course of carbon monoxide binding to myoglobin evidenced a strongly enhanced geminate recombination and a faster bimolecular rebinding with respect to solution, whereas T and R quaternary states of hemoglobin exhibited a geminate phase and a bimolecular binding rate very similar to those observed in solution. Oxygen affinity of T-state hemoglobin was found to be close to that observed for the binding of the first oxygen to T-state hemoglobin in solution. Results indicate that some conformational transitions are kinetically restricted, allowing to isolate distinct tertiary and quaternary states. This opens the way to their detailed functional characterization and application to biodevices.