A synthesized thin film composite (TFC) nanofiltration membrane was prepared by incorporating Mg(OH)2 nanosheets at different ratios (from 0 to 0.5 wt%) into polysulfone (PSf) support layer. The polypiperazinamide (PPA) layer was prepared on the polysulfone support layer by means of interfacial polymerization. Then TFC membrane was then etched with H2SO4 and a PPA selective layer was established using trimesoyl chloride (TMC) and piperazine (PIP). The characterization results show that the modifications of the PSf substrate with Mg(OH)2 alter the physicochemical properties of the poly(piperazine amide) selective layer. Through the introduction of Mg(OH)2, the hydrophilicity of the TFC membrane was increased (WCA: 20.5°), promoting more linear polypiperinamide. The addition of 0.4 wt% Mg(OH)₂ to the PSf substrate, followed by sulfuric acid etching, resulted in a 196 % increase in membrane flux and with Na₂SO₄ retention at 97.72 %. The change in matrix composition favoured the generation of a lighter and rougher selective layer. The two-dimensional nanochannels in the support layer provided additional channels for water molecule transport. The membrane with two-dimensional nanochannels exhibited excellent resistance to contamination, with a flux recovery of 92.8 % for bovine serum albumin (BSA).