Mineralogy is the branch of geology that studies the composition, structure, properties, and occurrences of minerals. It plays a crucial role in understanding Earth's materials and their applications in various fields such as construction, technology, and environmental science.