Ammonia, NH3, dissolves in water because ammonia and water are both polar liquids.