A biocompatible alginate biomaterial, which consists of an alginate having a molecular weight between 1,000 and 300,000 Daltons, and said alginate being selected from the group consisting of uncrosslinked alginate and crosslinked alginate with a crosslinking agent selected from the group consisting of calcium, strontium and barium for use in the treatment of impaired liver function in a subject in need, said liver function being altered as a result of fulminant liver failure, hepatectomy and / or liver disease selected from the group consisting of autoimmune hepatitis, chronic hepatitis C and hepatitis Chronic B, in which said treatment comprises the implantation or injection of a framework or a solution of acellular alginate by itself.Un biomaterial de alginato biocompatible, que consiste en un alginato que tiene un peso molecular entre 1.000 y 300.000 Dalton, y seleccionándose dicho alginato del grupo que consiste en alginato no reticulado y alginato reticulado con un agente reticulante seleccionado del grupo que consiste en calcio, estroncio y bario para su uso en el tratamiento de función hepática alterada en un sujeto que lo necesite, siendo dicha función hepática alterada resultado de insuficiencia hepática fulminante, hepatectomía y/o enfermedad hepática seleccionada del grupo que consiste en hepatitis autoinmunitaria, hepatitis C crónica y hepatitis B crónica, en el que dicho tratamiento comprende la implantación o la inyección de un armazón o de una solución de alginato acelular por sí mismo.