Method for producing a membrane filter (1, 20, 39) for filtering a liquid, - wherein the membrane filter (1, 20, 39) has at least one header (2, 32, 42) and at least one membrane block (3, 19, 41) which is connected to the header (2, 32, 42), - wherein the at least one membrane block (3, 19, 41) has multiple rows of hollow fibre membranes (5, 26) which are arranged side by side and substantially parallel to one another, - wherein each of the hollow fibre membranes (5, 26) has an open end (6, 33) which adjoins a permeate chamber (7, 45) in the at least one header (2, 32, 42), and a filtrate can be drawn off from the permeate chamber (7, 45) during operation, - wherein the at least one membrane block (3, 19, 41) has a spacer (10, 35) at a distance (9, 34) from the open ends (6, 33), which connects the hollow fibre membranes (5, 26) to one another while keeping them apart, and - wherein the hollow fibre membranes (5, 26) are surrounded, between the spacer (10, 35) and the open ends (6, 33), - by a seal layer that secures the hollow fibre membranes (5, 26) in the header (2, 32, 42) and seals the permeate chamber (7, 45) with respect to the liquid, and wherein the method has the following steps: a) forming the at least one membrane block (3, 19, 41), b) introducing the at least one membrane block (3, 19, 41) into the header (2, 32, 42), c) introducing a liquid casting material (18, 37, 44) between the spacer (10, 35) and the open ends (6, 33) in such manner that the casting material (18, 37, 44) surrounds the hollow fibre membranes (5, 26), and d) solidifying the casting material (18, 37, 44) to form the seal layer, characterized in that the at least one membrane block (3, 19, 41) is formed by e) applying a first layer (12, 50) of an adhesive (13, 22) to a surface, f) then repeating the following steps until all of the hollow fibre membranes (5, 26) of the at least one membrane block (3, 19, 41) have been laid in: i. laying the hollow fibre membranes (5, 26) of one of the rows into the previously applied layer (12, 50, 15, 16, 28, 53) of the adhesive (13, 22), wherein the open ends (6, 33) are positioned at the distance (9, 34) from the previously applied layer (12, 50, 15, 16, 28, 53) of the adhesive (13, 22), ii. applying a further layer (15, 16, 17, 28, 30, 53) of the adhesive (13, 22) to the previously applied layer (12, 50, 15, 16, 28, 53) so that the laid hollow fibre membranes (5, 26) are completely surrounded by the adhesive (13, 22), g) and solidifying the adhesive (13, 22) to form the spacer (10, 35). - wherein the membrane filter (1, 20, 39) has at least one header (2, 32, 42) and at least one membrane block (3, 19, 41) which is connected to the header (2, 32, 42), - wherein the at least one membrane block (3, 19, 41) has multiple rows of hollow fibre membranes (5, 26) which are arranged side by side and substantially parallel to one another, - wherein each of the hollow fibre membranes (5, 26) has an open end (6, 33) which adjoins a permeate chamber (7, 45) in the at least one header (2, 32, 42), and a filtrate can be drawn off from the permeate chamber (7, 45) during operation, - wherein the at least one membrane block (3, 19, 41) has a spacer (10, 35) at a distance (9, 34) from the open ends (6, 33), which connects the hollow fibre membranes (5, 26) to one another while keeping them apart, and - wherein the hollow fibre membranes (5, 26) are surrounded, between the spacer (10, 35) and the open ends (6, 33), - by a seal layer that secures the hollow fibre membranes (5, 26) in the header (2, 32, 42) and seals the permeate chamber (7, 45) with respect to the liquid, a) forming the at least one membrane block (3, 19, 41), b) introducing the at least one membrane block (3, 19, 41) into the header (2, 32, 42), c) introducing a liquid casting material (18, 37, 44) between the spacer (10, 35) and the open ends (6, 33) in such manner that the casting material (18, 37, 44) surrounds the hollow fibre membranes (5, 26), and d) solidifying the casting material (18, 37, 44) to form the seal layer, e) applying a first layer (12, 50) of an adhesive (13, 22) to a surface, f) then repeating the following steps until all of the hollow fibre membranes (5, 26) of the at least one membrane block (3, 19, 41) have been laid in: i. laying the hollow fibre membranes (5, 26) of one of the rows into the previously applied layer (12, 50, 15, 16, 28, 53) of the adhesive (13, 22), wherein the open ends (6, 33) are positioned at the distance (9, 34) from the previously applied layer (12, 50, 15, 16, 28, 53) of the adhesive (13, 22), ii. applying a further layer (15, 16, 17, 28, 30, 53) of the adhesive (13, 22) to the previously applied layer (12, 50, 15, 16, 28, 53) so that the laid hollow fibre membranes (5, 26) are completely surrounded by the adhesive (13, 22), i. laying the hollow fibre membranes (5, 26) of one of the rows into the previously applied layer (12, 50, 15, 16, 28, 53) of the adhesive (13, 22), wherein the open ends (6, 33) are positioned at the distance (9, 34) from the previously applied layer (12, 50, 15, 16, 28, 53) of the adhesive (13, 22), ii. applying a further layer (15, 16, 17, 28, 30, 53) of the adhesive (13, 22) to the previously applied layer (12, 50, 15, 16, 28, 53) so that the laid hollow fibre membranes (5, 26) are completely surrounded by the adhesive (13, 22), g) and solidifying the adhesive (13, 22) to form the spacer (10, 35).