In EBE, an electron beam generated by an electron gun is directed towards the target material. The high-energy electrons cause the target material to heat up and vaporize. The vaporized atoms travel in a vacuum chamber and deposit onto the substrate, forming a thin film. The entire process takes place in a high vacuum environment to prevent contamination and ensure a high-quality film.