A method for treating type 1 and type 2 diabetes by administering an oral pharmaceutical formulation which comprises of insulin or its analogs amalgamated with suitable encapsulating agents and pharmaceutical excipients. The encapsulated pharmaceutical oral formulation protects insulin or its analogs from harsh milieu of the gastrointestinal tract and facilitates efficient delivery of insulin at targeted sites with sustained hypoglycemic activity.La présente invention concerne un procédé de traitement du diabète de type 1 et de type 2 par administration d'une formation pharmaceutique orale qui comprend de l'insuline ou ses analogues mélangés à des agents d'encapsulation et des excipients pharmaceutiques adaptés. la formulation pharmaceutique orale encapsulée protège l'insuline ou ses analogues du milieu agressif rencontré dans le tractus gastro-intestinal et facilite l'administration efficace d'insuline à des sites cibles avec une activité hypoglycémique prolongée.