The present invention provides a biodegradable hydrogel with controlled lifetime obtainable by crosslinking α,ω-itaconyl terminated [(polylactide-co-polyglycolide)-b-polyethyleneglycol-b-(polylactide-co-polyglycolide)] block copolymer using a blue light and catalyzed by a mixture of camphoroquinone and a tertiary amine without the presence of any crosslinking agent.. Furthermore, the invention includes a method of preparation and a composition for preparing such biodegradable hydrogel. ˙