Electron diffraction is a technique that uses the wave-like properties of electrons to determine the structure of matter. When electrons are fired at a sample, they diffract according to the positions of atoms, producing an interference pattern. This pattern provides information about distances between atoms in gas molecules. Electron diffraction was first demonstrated in 1927 and was later used to determine the structure of carbon tetrachloride in 1930. Electrons interact with matter through both electrostatic and magnetic forces, allowing for probing of both atomic nuclei and surrounding electrons. The intensity of diffracted beams depends on factors like the structure factor, which incorporates the scattering power and positions of atoms in the sample unit cell.