Bases are compounds that are opposite in acids in their characteristics. Bases dissolving in water are alkalies. The metal hydroxide which dissolves in water functioning as strong alkalies.
Sodium hydroxide, Potassium hydroxide are alkalies, but Al(OH)3 , Ca(OH)2 are bases.