The bacteria which oxidize inorganic substances such as nitrate, nitrites and ammonia to release energy in the form of ATP are called chemosynthetic bacteria.
They play great role in recycling nutrients like nitrogen, phosphorous, iron and sulphur.