used with proper diet and exercise to treat high blood sugar levels caused by type 2 diabetes. It may be used alone or with other medicines such as insulin, metformin, or sulfonylurea agents. Pioglitazone works by helping your body use insulin better.