The two countries are adjacent and share a long border.
Tips
usage
相邻 is often used in formal or technical contexts (geography, math, architecture). In everyday speech, 旁边 (next to) or 隔壁 (next door) are more common for describing physical proximity.