A method for the solid phase synthesis of N,N-disubstituted diazacycloalkylcarboxy derivatives of general formula (I) and (II) is claimed. Examples include piperazine-2-carboxamide. The method is applicable to the synthesis or large combinatorial libraries