Al Jazeera's James Bays, reporting from the capital, Kabul, said Obama's visit is attracting a lot of attention even among ordinary Afghans.
"His visit is cloaked in secrecy ... during his time here he will meet the Afghan president, Hamid Karzai, although there will be no press conference just an opportunity for the two leaders to speak and pose for photographs."
Bays said that if Obama is elected president and takes office in January 2009, then the Afghan elections will be one of his top priorities because Karzai will also be facing elections in the next year.
"Afghanistan is one of Barack Obama's top priorities ... his key note speech on foreign affairs and he spoke for much of that speech about Afghanistan.
"He said he was going to withdraw troops from Iraq in his first year in office, and he was going to send two extra combat brigades to Afghanistan, an extra $1bn each year for this country."
The senator has said that Afghanistan is the central front in the so-called "war on terror," and he is expected to call for more US action to rout the Taliban and al-Qaeda.
Obama is also expected to visit Iraq on his tour ahead of the November election. Also in a surprise visit, Gordon Brown, the British prime minister, touched down in Baghdad, the Iraqi capital, on Saturday.