Virtual reality is used in medical training to provide a realistic environment for students to learn. For example, surgeons may use virtual reality to practice surgeries before performing them on patients. This helps to ensure that the surgery is performed correctly and safely. Additionally, medical students can use virtual reality to learn about the human body and how it works. This helps them to better understand diseases and how to treat them.