© The Author(s) 2016. The definition of a precise illumination region is essential in many applications where the electromagnetic field should be confined in some specific volume. By using conventional structures, it is difficult to achieve an adequate confinement distance (or volume) with negligible levels of radiation leakage beyond it. Although metamaterial structures and metasurfaces are well-known to provide high controllability of their electromagnetic properties, this feature has not yet been applied to solve this problem. We present a method of electromagnetic field confinement based on the generation of evanescent waves by means of metamaterial structures. With this method, the confinement volume can be controlled, namely, it is possible to define a large area with an intense field without radiation leakage. A prototype working in the microwave region has been implemented, and very good agreement between the measurements and the theoretical prediction of field distribution has been obtained.