Repaglinide is prescribed to help control blood sugar levels in individuals with type 2 diabetes. It is particularly useful in cases where lifestyle changes, such as diet and exercise, have not been sufficient to manage blood glucose levels.