Locke's medical knowledge was put to the test when Shaftesbury's liver disease became worse until Shaftesbury was about to die. Locke used the advice of several physicians and persuaded Shaftesbury to go to an operation. Shaftesbury lived through the operation and thanked Locke for saving his life.