A catalytic hydrogel is reported for the substrate selective direct aldol reaction of aliphatic ketones based on their hydrophobicity and on the emergence of catalytic activity only after self-assembly of the catalyst.