In the Pashtunwali, a code of laws of the Pashtun peoples living in areas of Afghanistan and Pakistan and neighboring countries, loya jirga (Pashto: لويه جرګه, "grand assembly") is a special type of jirga that is mainly organized for choosing a new head of state in case of sudden death, adopting a new constitution, or to settle national or regional issue such as war. It predates modern-day written or fixed laws and is mostly favored by the Pashtun people but to a lesser extent by other nearby groups that have been influenced by Pashtuns (historically known as Afghans).
In Afghanistan, loya jirgas have been reportedly organized since at least the early 18th century when the Hotaki and Durrani dynasties rose to power.
The ancient Aryan tribes, who are hypothesized to have spoken Proto-Indo-Iranian, came down in intermittent waves from Central Asia and Afghanistan. They practiced a sort of jirga-system with two types of councils – simite and sabhā. The simite (the summit) comprised elders and tribal chiefs. The king also joined sessions of the simite. Sabhā was a sort of rural council. In India it is referred to as Samiti and Sabha.
It was used over time for the selection of rulers and headmen and the airing of matters of principle. From the time of the great Kushan ruler Kanishka to the 1970s, there were sixteen national loya jirgas and hundreds of smaller ones. The institution, which is centuries old, is a similar idea to the Islamic "shura", or consultative assembly.
In the Afghan society, the loya jirga is still maintained and favored, mostly by tribal leaders to solve internal or external disputes with other tribes. In some cases it functions like a town hall meeting.