The pH scale is a method to measure if a substance is an acid or base. The amount of hydronium and hydroxide ions there are in a solution determines how acidic or basic it is. Water is the most neutral on this scale, with an equal number of hydronium and hydroxide ions.
When a substance has more hydronium ions, it is more acidic.
When a substance has more hydroxide ions, it is more basic.