The Office of the President, ARG Palace, said Chief Executive Officer Abdullah Abdullah was also present during the meeting.
Obama said he has extended the presence of the US forces in Afghanistan considering the assessments of the political and military officials and commitments of the government and people of Afghanistan.
He also hailed the government of national unity for having a clear vision for the people of Afghanistan, emphasizing that the vision and perspective of the government of national unity has encouraged the United States to continue supporting the government and people of Afghanistan.
Reaffirming the support by Washington and other countries, Obama also hailed the government of national unity for its achievements.
In his return, President Ghani thanked the United States, its government and people for their support to Afghanistan, specifically for extending the presence of the US forces in the country.
The two sides also held talks on other issues of bilateral interest including relations between the two countries, security issues, peace and stability in Afghanistan.