In alkylimino-de-oxo-bisubstitution, a primary or secondary amine adds to the carbonyl group and a proton is transferred from the nitrogen to the oxygen atom to create a carbinolamine. In the case of a primary amine, a water molecule can be eliminated from the carbinolamine intermediate to yield an imine or its trimer, a hexahydrotriazine This reaction is catalyzed by acid. Hydroxylamine () can also add to the carbonyl group. After the elimination of water, this results in an oxime. An ammonia derivative of the form  such as hydrazine () or 2,4-dinitrophenylhydrazine can also be the nucleophile and after the elimination of water, resulting in the formation of a hydrazone, which are usually orange crystalline solids. This reaction forms the basis of a test for aldehydes and ketones.