U.S. President Joe Biden has said the American military mission in Afghanistan will conclude by Aug. 31, arguing that the U.S. achieved its goals and should not seek to rebuild the nation.

"I want to be clear: the U.S. military mission in Afghanistan continues through the end of August,” Biden said in a speech at the White House on Thursday. He added that the U.S. would continue "to speak out for the rights of women and girls” even as the Taliban makes quick gains amid the U.S. drawdown.

Biden reflected on America’s longest war, which will end just shy of its 20-year anniversary after the deaths of 2,448 U.S. service members and nearly 21,000 wounded.