Any small molecule that is necessary for the functioning of an enzyme.