Oil, coal and gas are finite. But between them they will last decades, perhaps centuries, and people will find alternatives long before they run out. Fuel can be synthesised from water using any source of power, such as nuclear or solar. At the moment, it costs too much to do so, but as efficiency increases and oil prices rise, then the equation will look different.