Petroleum is a fossil fuel produced from the remains of ancient plants and animals. Crude oil extracted from wells is sent to refineries where it is heated and separated based on density into products like gasoline, diesel, and lubricating oil. These refined fuels are then used to power engines in vehicles and machines, where combustion converts the chemical energy in fuel into mechanical motion.