The patented thermal hydrolysis process has been developed to pretreat biological feedstock, particularly straw and other lignocellulosic materials, for optimized production of bioenergy either in the form of biogas, second generation bioethanol, or biopellets.