Honduras has a Caribbean coastline extending from the mouth of the Río Motagua in the west to the mouth of the Río Coco in the east, at Cape Gracias a Dios. The southeastern side of the triangle is a land border with Nicaragua. It follows the Río Coco near the Caribbean Sea and then extends southwestward through mountainous terrain to the Gulf of Fonseca on the Pacific Ocean. The southern apex of the triangle is a coastline on the Gulf Fonseca, which opens onto the Pacific Ocean. In the west there are two land borders: with El Salvador as and with Guatemala as .