Nepal and China have signed 20 agreements, including one on a trans-Himalayan railway, as Chinese President Xi Jinping wrapped up a two-day visit to the Himalayan nation.

After talks in Kathmandu on Sunday, Xi and Nepalese Prime Minister K.P. Sharma Oli witnessed the signing of 18 agreements and two letters of exchange in areas of connectivity, security, border management, trade, tourism and education.

More Images
Chinese President Xi Jinping, waits for a bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Nepal and China have signed 20 agreements, including one on a trans-Himalayan railway, as Chinese President Xi Jinping wrapped up a two-day visit to the Himalayan nation.

Chinese President Xi Jinping, third right and Nepalese Prime Minister Khadga Prasad Oli, left sit face to face during  a bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

India has extensive influence on Nepal's economy and politics, while China and Nepal share a border covered with high mountain peaks. Nepal is traditionally cautious in building relations with its bigger neighbors India and China.

Chinese President Xi Jinping, left, and Nepalese Prime Minister Khadga Prasad Oli shake hands during their bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping, left, and Nepalese Prime Minister Khadga Prasad Oli shake hands during their bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping, left, and Nepalese Prime Minister Khadga Prasad Oli greet during their bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping, left, and Nepalese Prime Minister Khadga Prasad Oli greet during their bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping addresses a gathering at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping addresses a gathering at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping speaks with Nepalese President Bidhya Devi Bhandari at a banquet at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping speaks with Nepalese President Bidhya Devi Bhandari at a banquet at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping speaks with Nepalese Prime Minister Khadga Prasad Oli during a banquet at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping speaks with Nepalese Prime Minister Khadga Prasad Oli during a banquet at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Xi, who arrived Saturday from India after meeting Indian Prime Minister Narendra Modi, became the first Chinese president in more than two decades to visit Nepal.

Chinese President Xi Jinping, waits for a bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping, waits for a bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

India has extensive influence on Nepal's economy and politics, while China and Nepal share a border covered with high mountain peaks. Nepal is traditionally cautious in building relations with its bigger neighbors India and China.

Chinese President Xi Jinping, third right and Nepalese Prime Minister Khadga Prasad Oli, left sit face to face during  a bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping, third right and Nepalese Prime Minister Khadga Prasad Oli, left sit face to face during a bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping, left, and Nepalese Prime Minister Khadga Prasad Oli shake hands during their bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping, left, and Nepalese Prime Minister Khadga Prasad Oli shake hands during their bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping, left, and Nepalese Prime Minister Khadga Prasad Oli greet during their bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping, left, and Nepalese Prime Minister Khadga Prasad Oli greet during their bilateral meeting in Kathmandu, Nepal, Sunday, Oct. 13, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping addresses a gathering at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping addresses a gathering at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping speaks with Nepalese President Bidhya Devi Bhandari at a banquet at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping speaks with Nepalese President Bidhya Devi Bhandari at a banquet at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping speaks with Nepalese Prime Minister Khadga Prasad Oli during a banquet at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)

Chinese President Xi Jinping speaks with Nepalese Prime Minister Khadga Prasad Oli during a banquet at Soltee Hotel in Kathmandu, Nepal, Saturday, Oct. 12, 2019. Xi on Saturday became the first Chinese president in more than two decades to visit Nepal, where he's expected to sign agreements on some infrastructure projects. (Bikash DwareThe Rising Nepal via AP)