The liver's primary function is detoxification. To ensure that it continues to carry out this function efficiently, it regenerates every 150 to 500 days and remains immune to most toxins that can damage it.