In this invention a two steps procedure is described useful to insert functional groups to the hyaluronic acid (HA), through the formation, in organic solvent, of a particular active group on hydroxyl groups of HA and subsequent substitution, on the inserted active group, with a pendant portion containing at least in its terminal portion a nucleophilic functional group, NH2—R. The group inserted by nucleophilic substitution can contain in another its terminal portion a further nucleophilic functional group, in a way to be easily exploitable to further chemical functionalizations, such as an example to obtain the methacrylation of HA functional groups, to obtain photocrosslinkable derivatives. Both direct derivatives of the proposed process and those obtained by the further functionalization can be employed to produce hydrogels.