German President Joachim Gauck was received with military honours when he arrived Tuesday at the Presidential Palace in Kabul, dpa reported.
He met his Afghan counterpart, Hamid Karzai, for talks on civil and development cooperation after the scheduled withdrawal of international troops in 2014.
Gauck was also due to meet Muslim religious scholars.
Bad weather delayed the German president's arrival from the northern Afghan city of Mazar-e Sharif.
The German head of state was accompanied by his partner Daniela Schadt on the trip, his first to Afghanistan.
He arrived Monday and visited the German base at Mazar-e Sharif, where 2,000 of the German military contingent of 4,500 personnel are based. Gauck thanked soldiers, police and aid workers for their efforts.
He said this gratitude was especially great in the week before Christmas.