The study of the properties, composition, and behavior of substances, including elements, compounds, and minerals.