Hydrocarbons are organic compounds made up of hydrogen and carbon atoms, serving as the primary components of fossil fuels like oil, natural gas, and coal.