A device for electrolytic refining of aluminium and/or its alloys from metal impurities, having a cover vessel (12) lined with refractory materials to hold molten anode aluminium (8) with an anode lead (9), bath (7), and molten cathode aluminium (5), a cathode with a current lead (4), and a collecting tank (11) for cathode aluminium (5), no less than one porous diaphragm (6), characterised in that the porous diaphragm (6) is a closed removable vessel, mounted by attachment (10) on the cover (12) and filled with bath (7), permeable to bath but impermeable to molten aluminium or aluminium alloy with impurities and molten cathode aluminium (5), wherein the cathode with the current lead (4) is loaded and immersed in molten anode aluminium (9), with the cathode and current lead (4) vertically fixed inside the porous diaphragm vessel (6), and drainage channels (13) in the bottom part of the cathode are located at the level of molten cathode aluminium (5) to enable its removal from the porous diaphragm vessel (6) into the collecting tank (11).