The purpose of this study is to compare the safety and efficacy of the Ahmed valve and the Baerveldt implant in treating refractory glaucoma. Eligible patients will be recruited from multiple study centers and randomized to a glaucoma drainage device for implantation. They will be followed long-term based upon outcome measures including intraocular pressure, glaucoma medication use, visual acuity, complications of the surgery and further treatments required.