The flag of Afghanistan has undergone many changes over time. In the 19th century, a flag with a solid black color was used as the flag of Afghanistan. In the early 20th century, the national emblem was added to the flag.

The black flag, which was taken from the flag of Abu Muslim during the Khorasani uprising, was used as the background color of the Afghan flag until 1928. Since 1928, at the same time as the Kingdom of Afghanistan began to exist, the tricolor flag of Afghanistan, black, red and green, with the national emblem on it, was approved by King Amanullah Khan. The coat of arms depicts a golden sun rising through snow-capped mountains, marking the beginning of the Afghan kingdom. The symbol of a yellow sun on a red background can now be seen on the current flag of North Macedonia. This tricolor flag of Afghanistan was used for only two years between 1928 and 1929.
Then, also for two years from 1978 to 1980, when the Democratic Republic of Afghanistan came to power, the red flag of Afghanistan with a yellow symbol in the upper left corner of the flag was used. The word "Khalk" was written on the flag, which was the symbol of the People's Democratic Party of Afghanistan and meant "People".
In 1996, when the Taliban government came to power in Afghanistan, the country was renamed the Islamic Emirate of Afghanistan, and the flag of Afghanistan was changed to white, to which was later added the inscription La ilaha ila Allah Muhammad Rasulullah, referring to the main tenet of the Islamic faith: "There is no God but Allah".
The black, red and green flag of Afghanistan was approved in 2004. This flag is still used internationally, demonstrating recognition as an Islamic Republic, despite the Taliban's rule since 2021 and the use of the Taliban flag in Afghanistan, which had the status of a national flag from 1996 to 2001.