GLP-1 and its analogs are used in the treatment of type 2 diabetes mellitus due to their ability to enhance insulin secretion and improve glycemic control. These therapies are also being explored for their potential benefits in obesity management, given GLP-1's role in appetite suppression.