During the electrolysis, aluminium is deposited at the cathode and oxygen is liberated at the anode and sometimes its react with the carbon in the graphite to form carbon-dioxide, so anode burnt away slowly. Thus, the anodes have to be replaced periodically.