What are X-rays? An X-ray is a packet of electromagnetic energy (photon) that originate from the electron cloud of an atom . This is generally caused by energy changes in an electron, which moves from a higher energy level to a lower one, causing the excess energy to be released.