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