An X-ray machine is a device that uses X-rays to create images of the inside of the body. X-rays are a type of electromagnetic radiation that can pass through the body, but they are absorbed by different tissues at different rates. This allows doctors to see the bones, organs, and other structures inside the body. X-ray machines are used to diagnose a wide variety of medical conditions, including broken bones, tumors, and infections. They are also used to guide surgery and to monitor the progress of treatment.