Hamas congratulates Taliban on 'courageous leadership'
Hamas said in a statement that it "congratulates the Taliban movement and its courageous leadership on this victory, which was the culmination of its long struggle over the past 20 years".
The Taliban, a hardline Sunni Muslim fundamentalist movement, ended two decades of American and allied military presence on Sunday, as its militants patrolled the streets of Kabul and settled into the presidential palace.
Hamas, which seized power in Gaza in 2007, wished "the Afghan Muslim people and its leadership success in achieving unity, stability and prosperity".
The end of the US presence in Afghanistan proves "that the resistance of the peoples, foremost of which is our struggling Palestinian people, is destined for victory", it said.
Israel and most Western nations consider Hamas a terrorist group, and the Jewish state has maintained a blockade on the crowded Gaza Strip, home to nearly two million people, since Hamas took power.
The group, linked to the Muslim Brotherhood, has fought four wars against Israel.