Rye straw is a second-generation substrate that can be used in bioethanol production. Pretreatment with EMIM OAc led to a 3x increase in the content of reducing sugars. The results of the optimization process are illustrated with response surface models.