The visit took place unexpectedly, APA reports citing Reuters.
Ash Carter is scheduled to meet with Ashraf Ghani and other officials.
He said he wanted to talk to Afghan and American officials to ensure a "lasting" success as U.S. troops withdraw from Afghanistan.