A cavity sealer is placed on all walls of a cavity preparation for the purpose of blocking leakage at the restoration- preparation interface. Traditionally, varnishes placed under amalgams were considered cavity sealers.