Both acids and bases dissociate into ions ( in acids and in bases), which allows them to conduct electricity.