What is midazolam used for? Midazolam is commonly used to treat the following conditions. To relax you and make you sleepy before a surgery or medical procedure. Certain type of seizure disorders ...