The concept of the (dual) binary discriminator was introduced by R.Halaš, I.G.Rosenberg and the author in 1999. We study finite algebras having the (dual) discriminator as a term function. In particular, a simple characterization is obtained for such algebras with a majority term function.