Alkaline catalysts function by providing an environment that favors the formation of reactive intermediates. For example, in the transesterification reaction for biodiesel production, an alkaline catalyst deprotonates the alcohol, forming an alkoxide ion, which is highly nucleophilic and can attack the carbonyl carbon of the triglyceride, leading to the formation of the desired ester.