A pharmaceutical composition comprising an alginate hydrogel core where a bioactive agent is entrapped. The water content of the hydrogel is at least 10% of equilibrium water content. The beads have an enteric coating and are intended for oral administration. The bioactive agent is bioactive proteins, antibodies or viable cells and it is intended to exert its activity in the duodenum and the upper intestines.