Base catalysts, like sodium hydroxide and potassium carbonate, function by abstracting protons from the reactants. This deprotonation increases the nucleophilicity of the reactants, facilitating reactions such as aldol condensation. In this process, the base abstracts a proton from the alpha carbon of an aldehyde or ketone, forming an enolate ion, which then reacts with another carbonyl compound.