We study in this paper conditions under which nilradicals of totally disconnected locally compact rings are closed. In the paper is given a characterization of locally finite compact rings via identities.