Coffee production in Nicaragua has been an important part of its history and economy. It is one of the country's principal products. The areas most suitable for the cultivation of coffee have been Managua Department, Diriamba, San Marcos, Jinotepe, as well as the vicinity of Granada Department, Lake Nicaragua, Chontales Department, and in Nueva Segovia; historically, the best coffee is produced in Matagalpa and in Jinotega. Most of the coffee was grown in Managua Department, but Matagalpa Departmentproduced the best bean quality. The best altitude to grow this coffee is 1500-1800 meters above the sea level.