Basically, when acidic compounds loses a proton (H+ ion), their pH increases, whereas when a base gains a proton, its pH decreases.