Afghan security forces say they have killed all four militants who attacked Kabul International Airport early on Thursday morning and that the unrest there is over.
Armed men had stormed an empty building nearby just after dawn, with a car bomb thought to have helped them gain access.
Explosions and bursts of gunfire were heard and a fierce gunfight followed with Afghan police and special forces.
The airport which is used by civilians and the military was undamaged according to authorities.
Afghanistan’s Taliban have said they were behind the attack.
The incident comes at a time of uncertainty for Afghanistan as votes from the second round of a disputed presidential election are to be counted. The poll is meant to mark the country’s first democratic transfer of power.