The study of carbon-based compounds, such as hydrocarbons and biomolecules, and their behavior in natural systems.