The present invention provides a method for converting lignocellulosic material into biofuel. In particular embodiments, the method comprises pre-treating lignocellulosic material by dissolving the material in ionic liquids. The pretreated lignocellulosic material can be isolated, such as by precipitation with a regenerating solvent (e.g., water), and be used directly in the formation of biofuel, including undergoing hydrolysis to form sugar and fermentation to form fuel, such as bioethanol. The ionic liquid can be recycled for further use, such as by evaporation of the water introduced during precipitation, and the recycling provides a route to a hemicellulose rich fraction and an ionic liquid of consistent quality and wood dissolution characteristics. The recovered hemicelluloses are of significant utilization potential toward commodity and specialty applications.