Guanacaste is a province of Costa Rica. It is in the northwestern part of the country, bordering Nicaragua. The provincial capital is the city of Liberia.