Hydrocarbons are organic compounds made up of hydrogen and carbon atoms. They are the primary components of fossil fuels, such as petroleum and natural gas, and can be found in various forms, including gases, liquids, and solids. Hydrocarbons are classified into two main categories: aliphatic, which includes alkanes, alkenes, and alkynes, and aromatic hydrocarbons, which contain a ring structure.
These compounds play a crucial role in energy production and are used in the manufacturing of many everyday products, such as plastics, synthetic fibers, and paints. Hydrocarbons can also contribute to environmental issues, including air pollution and climate change, when burned for energy.