A method for manufacturing a flexible, self-supporting, non-continuous membrane, said membrane comprising a polymer matrix and metal-organic frameworks (MOFs), said MOFs being embedded in said polymer matrix in channel-like structures; said method comprising the step of: (a) providing a dispersion consisting of a dispersed phase and continuous phase ▪ said dispersed phase comprising nanoparticles selected from the group consisting of metals, metal oxides, metal salts, and metal silicates; ▪ said continuous phase comprising a polymer, a first solvent and a second solvent; (b) coating a substrate with said dispersion to obtain a material; (c) subjecting the obtained material to a phase inversion step by removing said first solvent to thereby obtain a precursor material; (d) contacting the obtained precursor material with a solution comprising ▪ a solvent selected from the group consisting of water, C1-C8 mono-alcohols optionally in combination with water, dimethylacetamide in combination with water or methanol; ▪ a ligand selected from the group consisting of benzimidazole, 2-methyl imidazole, imidazolate-2-carboxyaldehyde; (e) removing the obtained membrane from said substrate and optionally further processing the obtained membrane; wherein in said step (b) a film from 10 μm to 500 μm is casted. said membrane comprising a polymer matrix and metal-organic frameworks (MOFs), said MOFs being embedded in said polymer matrix in channel-like structures; said method comprising the step of: (a) providing a dispersion consisting of a dispersed phase and continuous phase ▪ said dispersed phase comprising nanoparticles selected from the group consisting of metals, metal oxides, metal salts, and metal silicates; ▪ said continuous phase comprising a polymer, a first solvent and a second solvent; (b) coating a substrate with said dispersion to obtain a material; (c) subjecting the obtained material to a phase inversion step by removing said first solvent to thereby obtain a precursor material; (d) contacting the obtained precursor material with a solution comprising ▪ a solvent selected from the group consisting of water, C1-C8 mono-alcohols optionally in combination with water, dimethylacetamide in combination with water or methanol; ▪ a ligand selected from the group consisting of benzimidazole, 2-methyl imidazole, imidazolate-2-carboxyaldehyde; (e) removing the obtained membrane from said substrate and optionally further processing the obtained membrane; wherein in said step (b) a film from 10 μm to 500 μm is casted. (a) providing a dispersion consisting of a dispersed phase and continuous phase ▪ said dispersed phase comprising nanoparticles selected from the group consisting of metals, metal oxides, metal salts, and metal silicates; ▪ said continuous phase comprising a polymer, a first solvent and a second solvent; ▪ said dispersed phase comprising nanoparticles selected from the group consisting of metals, metal oxides, metal salts, and metal silicates; ▪ said continuous phase comprising a polymer, a first solvent and a second solvent; (b) coating a substrate with said dispersion to obtain a material; (c) subjecting the obtained material to a phase inversion step by removing said first solvent to thereby obtain a precursor material; (d) contacting the obtained precursor material with a solution comprising ▪ a solvent selected from the group consisting of water, C1-C8 mono-alcohols optionally in combination with water, dimethylacetamide in combination with water or methanol; ▪ a ligand selected from the group consisting of benzimidazole, 2-methyl imidazole, imidazolate-2-carboxyaldehyde; ▪ a solvent selected from the group consisting of water, C1-C8 mono-alcohols optionally in combination with water, dimethylacetamide in combination with water or methanol; ▪ a ligand selected from the group consisting of benzimidazole, 2-methyl imidazole, imidazolate-2-carboxyaldehyde; (e) removing the obtained membrane from said substrate and optionally further processing the obtained membrane;