The public trustee is an office established pursuant to national (and, if applicable, state or territory) statute, to act as a trustee, usually when a sum is required to be deposited as security by legislation, if courts remove another trustee, or for estates if either no executor is named by will or the testator elects to name the public trustee.