The development of new food preservatives is essential to prevent foodborne outbreaks or food spoilage due to microbial growth, enzymatic activity or oxidation. Furthermore, new compounds that substitute the commonly used synthetic food preservatives are needed to stifle the rising problem of microbial resistance. In this scenario, we report herein, as far as we know, for the first time the use of the zein protein as a gating moiety and its application for the controlled release of essential oil components (EOCs). The design of microdevices consist of mesoporous silica particles loaded with essential oils components (thymol, carvacrol and cinnamaldehyde) and functionalized with the zein (prolamin) protein found in corn as a molecular gate. The zein protein grafted on the synthesized microdevices is degraded by the proteolytic action of bacterial enzymatic secretions with the consequent release of the loaded essential oil components efficiently inhibiting bacterial growth. The results allow us to conclude that the new microdevice presented here loaded with the essential oil component cinnamaldehyde improved the antimicrobial properties of the free compound by decreasing volatility and increasing local concentration.