Objective: To understand the types and characteristics of glaucoma in pediatric inpatients to achieve early detection and treatment. Methods: A total of 834 patients aged 0–18 years who underwent anti-glaucoma surgery in Beijing Tongren Hospital from 2014 to 2019 were collected and their population characteristics and disease composition characteristics were retrospectively analyzed. Results: In all of the 834 cases, there were 397 patients (47.6%) with primary glaucoma and 429 (51.4%) with secondary glaucoma. The type of glaucoma could not be definitively diagnosed in 8 cases. Primary infant glaucoma and secondary glaucoma following cataract surgery accounted for above 50%. Conclusion: The causes of pediatric inpatients with glaucoma are various. Screening of primary infant glaucoma should be taken seriously and monitoring intraocular pressure after cataract surgery is also important. Early detection and treatment can prevent further visual loss of pediatric patients with glaucoma.