Glimepiride is an oral medication used to treat type 2 (non-insulin-dependent) diabetes when diet and exercise alone fail to control abnormally high levels of blood sugar.