The bombarding electrons can eject electrons from the inner shells of the atoms of the metal target. Those vacancies will be quickly filled by electrons dropping from higher levels, emitting x-rays with sharply defined frequencies associated with the difference between the atomic energy levels of the target atoms. Hence, X-rays are emitted when a metal target is bombarded with high energy electrons.