Midodrine is primarily used to treat orthostatic hypotension, a condition where blood pressure drops significantly upon standing up, causing symptoms like dizziness, lightheadedness, or fainting. It constricts blood vessels and raises blood pressure.