Write a net ionic equation to show why solid barium hydroxide, Ba(OH)2 (s), forms a basic solution when it dissolves in water.

Ba(OH)2(s) + H2O ==> Ba^2+(aq) + 2OH^-(aq)

The excess OH^- makes the solution basic.