This technology relates to the transdermal treatment of diabetes. In particular, to a formulation for the transdermal delivery of the photoactive antidiabetic agent diosgenin that is encapsulated and protected by an oil-in-water nanoemulsion matrix for the treatment of type 11 diabetes Mellitus