Metamaterials are artificial substances that are structurally engineered to have properties not typically found in nature. To date, almost all metamaterials have been made from inorganic materials such as silicon and copper, which have unusual electromagnetic or acoustic properties that allow them to be used, for example, as invisible cloaks, superlenses or super absorbers for sound. Here, we show that metamaterials with unusual mechanical properties can be prepared using DNA as a building block. We used a polymerase enzyme to elongate DNA chains and weave them non-covalently into a hydrogel. The resulting material, which we term a meta-hydrogel, has liquid-like properties when taken out of water and solid-like properties when in water. Moreover, upon the addition of water, and after complete deformation, the hydrogel can be made to return to its original shape. The meta-hydrogel has a hierarchical internal structure and, as an example of its potential applications, we use it to create an electric circuit that uses water as a switch.