An ocular composition comprising: a) at least 0.1% w/w of a therapeutic agent; b) 5 to 95% w/w of a photopolymerizable composition comprising 3 to 70% w/w of one or more compounds of formula I: wherein R 1 is hydrogen or a linear or branched C 1 -C 3 alkyl; R 2 is an acrylate or methacrylate group; n is 2 or 3 and m is equal or greater than 1, the weight percentage of the one or more compounds of formula I being based on the total weight of the photopolymerizable composition, wherein the photopolymerizable composition further comprises one or more disubstituted acrylate or methacrylate compounds selected from the group consisting of ethylene glycol diacrylate, di (ethylene glycol) diacrylate, poly (ethylene glycol) diacrylate, ethylene glycol dimethacrylate, di (ethylene glycol) dimethacrylate, poly (ethylene glycol) dimethacrylate, propylene glycol diacrylate, di (propylene glycol) diacrylate, poly (propylene glycol) diacrylate, propylene glycol dimethacrylate, di (propylene glycol) dimethacrylate, poly (propylene glycol) dimethacrylate, 1,6-hexanediol dimethacrylate; c) 0.1 to 40% w/w of a biodegradable polymer selected from the group consisting of lactide/glycolide copolymer (including poly(lactide-co-glycolide) (PLGA)), poly (L-lactide) (PLA), polyhydroxyalkanoates, including polyhydroxybutyrate, polyglycolic acid (PGA), polycaprolactone (PCL), poly (DL-lactide) (PDL), poly (D-lactide), lactide/caprolactone copolymer, poly-L-lactide-co-caprolactone (PLC) and mixtures, copolymers, and block copolymers thereof, and d) a photoinitiator. a) at least 0.1% w/w of a therapeutic agent; b) 5 to 95% w/w of a photopolymerizable composition comprising 3 to 70% w/w of one or more compounds of formula I: wherein R 1 is hydrogen or a linear or branched C 1 -C 3 alkyl; R 2 is an acrylate or methacrylate group; n is 2 or 3 and m is equal or greater than 1, the weight percentage of the one or more compounds of formula I being based on the total weight of the photopolymerizable composition, wherein the photopolymerizable composition further comprises one or more disubstituted acrylate or methacrylate compounds selected from the group consisting of ethylene glycol diacrylate, di (ethylene glycol) diacrylate, poly (ethylene glycol) diacrylate, ethylene glycol dimethacrylate, di (ethylene glycol) dimethacrylate, poly (ethylene glycol) dimethacrylate, propylene glycol diacrylate, di (propylene glycol) diacrylate, poly (propylene glycol) diacrylate, propylene glycol dimethacrylate, di (propylene glycol) dimethacrylate, poly (propylene glycol) dimethacrylate, 1,6-hexanediol dimethacrylate; wherein R 1 is hydrogen or a linear or branched C 1 -C 3 alkyl; R 2 is an acrylate or methacrylate group; n is 2 or 3 and m is equal or greater than 1, the weight percentage of the one or more compounds of formula I being based on the total weight of the photopolymerizable composition, wherein the photopolymerizable composition further comprises one or more disubstituted acrylate or methacrylate compounds selected from the group consisting of ethylene glycol diacrylate, di (ethylene glycol) diacrylate, poly (ethylene glycol) diacrylate, ethylene glycol dimethacrylate, di (ethylene glycol) dimethacrylate, poly (ethylene glycol) dimethacrylate, propylene glycol diacrylate, di (propylene glycol) diacrylate, poly (propylene glycol) diacrylate, propylene glycol dimethacrylate, di (propylene glycol) dimethacrylate, poly (propylene glycol) dimethacrylate, 1,6-hexanediol dimethacrylate; c) 0.1 to 40% w/w of a biodegradable polymer selected from the group consisting of lactide/glycolide copolymer (including poly(lactide-co-glycolide) (PLGA)), poly (L-lactide) (PLA), polyhydroxyalkanoates, including polyhydroxybutyrate, polyglycolic acid (PGA), polycaprolactone (PCL), poly (DL-lactide) (PDL), poly (D-lactide), lactide/caprolactone copolymer, poly-L-lactide-co-caprolactone (PLC) and mixtures, copolymers, and block copolymers thereof, and d) a photoinitiator. <EOS>