KABUL, Afghanistan -- Outgoing Afghan President Hamid Karzai is taking one last swipe at the U.S., saying that America hasn't wanted peace in Afghanistan.

Karzai on Tuesday said that peace will come to Afghanistan if the United States and Pakistan really want it.

The only president Afghanistan has known since the 2001 U.S.-led invasion said the U.S. wanted war in Afghanistan "because of its own interests." Karzai's relationship with the U.S. has grown increasingly fragile in recent years.

The speech was billed as Karzai's last as president. On Monday President-elect Ashraf Ghani Ahmadzai will be sworn in. Karzai has refused to sign a security agreement with the U.S. that would allow about 10,000 American military advisers and trainers to stay in the country next year. Ghani Ahmadzai has said he will sign it.