Pyrite, also known as fool's gold, is a mineral composed primarily of iron and sulfur. The chemical formula for pyrite is FeS2, indicating that it is composed of one iron atom and two sulfur atoms. These elements combine to form a cubic crystal structure, giving pyrite its characteristic metallic luster and golden-yellow color. Pyrite is commonly found in various geological environments, including hydrothermal veins, sedimentary rocks, and metamorphic rocks. It is often associated with other sulfide minerals, such as chalcopyrite, sphalerite, and galena.