The biopsy is usually performed under local anesthesia. A needle is inserted through the skin and into the liver to extract a small tissue sample. There are different techniques, such as percutaneous, transjugular, and laparoscopic biopsy, each with its own indications and risks. The choice of technique depends on the patient's condition and the presence of any contraindications.