Liver transplantation is a surgical procedure where a diseased liver is replaced with a healthy liver from a donor. It is considered when the liver is no longer functioning adequately, often due to chronic liver diseases, acute liver failure, or certain types of cancer.