X-rays are high-energy electromagnetic waves that can pass through soft tissue but are absorbed by bone and metal. This creates the shadow images we see in medical X-rays.
Too much X-ray exposure can damage cells, which is why we limit X-ray use and wear lead shields.