Shakya (Sanskrit: Śākya, Devanagari: शाक्य, Pāli: Sākya) is a Suryavanshi Kshatriya dynasty of Hindu religion in India.The Genealogy of Shakyas (ancestors as well as descendants) is found in Book IV of Vishnu Purana, the Shrimad Bhagavatam  and the Brahma Purana.
King Shakya was one of the last decendants of Ikshvaku dynasty, commonly known as Suryavansha. Rama was one of the earlier decendants of Ikshvaku. Other well known decendants include Satyavarta, Harishchandra, Bhagiratha, Raghu (after whom this dynasty also came to be known as Raghuvansha), Dasharatha father of Rama etc.
Chapter 1 of Vishnupurana mentions that Brahma created Daksha out of his thumb. Daksha had a daughter Aditi, who was mother of Sun. From the Sun was born Manu. Since the Sun-god was Manu's father, his lineage came to be known as the Suryavansha (the descendants of Sun). Manu had many sons of whom 50 perished quarelling with one another. Ten sons survived, one of whom was Ikshvaku.
The most famous Shakya was Siddhartha who was the founder of Buddhism and came to be known as Gautama Buddha. Siddhartha was the son of Suddhodana. Suddodhana who was the son of King Shakya and was ruler of Kapilvastu. As Gautama Buddha founded a new religion and abdicted the throne. So the lineage continued with his son Rahula.
The Shakyas are mentioned in the Buddhist texts, which include the Mahāvastu (ca. late 2nd century BCE), Mahāvaṃsa and Sumaṅgalavilāsinī, mostly in the accounts of the birth of the Buddha, as a part of the Adichchabandhus (kinsmen of the sun) or the Ādichchas (solar race) and as descendants of the legendary king Ikṣvāku (Pāli: Okkāka):
The Shakyas were settled in the territory bounded by the Himalayas in the north, The Rohni River (the present-day Kobana, a tributory of the Rapti)[disambiguation needed] in the east and the Rapti in the south. Some Buddhist texts, Mahāvastu, Mahavamsa and Sumangalavilasini give accounts of the Śākyas.
The Śākya nation was later subsumed into the Kingdom of Kosala under Viḍūḍabha.
The accounts of Buddhist texts
The Śākyas are mentioned in later Buddhist texts as well including the Mahāvastu (ca. late 2nd century BCE), Mahāvaṃsa and Sumaṅgalavilāsinī (ca. 5th century CE), mostly in the accounts of the birth of the Buddha, as a part of the Adichchabandhus (kinsmen of the sun) or the Ādichchas (solar race) and as descendants of the legendary king Ikṣvāku (Pāli: Okkāka)
There lived once upon a time a king of the Śākya, a scion of the solar race, whose name was Śuddhodana. He was pure in conduct, and beloved of the Śākya like the autumn moon. He had a wife, splendid, beautiful, and steadfast, who was called the Great Māyā, from her resemblance to Māyā the Goddess.—Buddhacarita of Aśvaghoṣa, I.1-2
The Buddhist text Mahavamsa (II, 1-24), traces the origin of the Sakyas (Śākyas) to king Okkaka (Ikshvaku) and gives their genealogy from Mahasammata, an ancestor of Okkaka. This list comprises the names of a number of prominent kings of the Ikshvaku dynasty, which include Mandhata and Sagara. According to this text, Okkamukha was the eldest son of Okkaka. Sivisamjaya and Sihassara were the son and grandson of Okkamukha. King Sihassara had eighty-two thousand sons and grandsons, who were together known as the Sakyas. The youngest son of Sihassara was Jayasena. Jayasena had a son, Sihahanu, and a daughter, Yashodhara (not to be confused with prince Siddhartha's wife), who was married to Devadahasakka. Devadahasakka had two daughters, Anjana and Kaccana. Sihahanu married Kaccana, and they had five sons and two daughters; Suddhodana was one of them. Suddhodana had two queens, Maya and Prajapati, both daughters of Anjana. Siddhartha (Gautama Buddha) was the son of Suddhodana and Maya. Rahula was the son of Siddhartha and Yashodara (also known as Bhaddakaccana), daughter of Suppabuddha and granddaughter of Anjana.
According to the Mahavastu and the Lalitavistara, the seat of the Shakya administration was the saṃsthāgāra (Pali:santhāgāra) (assembly hall) at Kapilavastu. A new building for the Shakya samsthagara was constructed at the time of Gautama Buddha, which was inaugurated by him. The highest administrative authority was the Shakya Parishad, comprising 500 members, which met in the samsthagara to transact any important business. The Shakya Parishad was headed by an elected raja, who presided over the meetings.
Annexation by Kosala
Viḍūḍabha, the son of Pasenadi and Vāsavakhattiyā, the daughter of a Śākya named Mahānāma by a slave girl ascended the throne of Kosala after overthrowing his father. As an act of vengeance for cheating Kosala by sending his mother, the daughter of a slave woman for marriage to his father, he invaded the Śākya territory, massacred them and annexed it.
Establishing new kingdoms
Migration to Kathmandu
After the annexation of Kapilavastu by Virudhaka, the remaining Shakyas fled northward to the hills, and settled in western Nepal. In order to hide from prosecution, they took the title of Koliya. When they learned of the forest monastery in Sankhu established during the time of Buddha, they migrated to Kathmandu Valley under the Kirats. Later, they established two settlements in Yembu and Yengal. In Yengal, they renovated the monasteries of Manjupattan. By Licchavi era, Yembu and Yengal were called Koligram and Dakshin Koligram respectively. They established various monasteries in both settlements, and retook the title of Shakyas in the late Licchavi era. Various monastic traditions are still followed to date in many of these monasteries.
- http://books.google.com/books?id=9dwDvOj1nloC&pg=PA81&dq=kahwa&lr=&as_brr=1#PPA1,M1 accessed on 07th December, 2008
- Brahma Purana, Chapters 7 and 8
- Misra, V.S. (2007). Ancient Indian Dynasties, Mumbai: Bharatiya Vidya Bhavan, ISBN 81-7276-413-8, pp.285-6
- Law, B.C. (1973). Tribes in Ancient India, Bhandarkar Oriental Series No.4, Poona: Bhandarkar Oriental Research Institute, pp.245-56
- Geiger, Wilhelm (tr.) (1912). "Mahavamsa, Chapter II". Ceylon Government Information Dept.,Colombo (in lakdvia.org website). Retrieved 2009-10-26.
- Raychaudhuri H. (1972). Political History of Ancient India, Calcutta: University of Calcutta, pp.177-8
- Kosambi D.D. (1988). The Culture and Civilsation of Ancient India in Historical Outline, New Delhi: Vikas Publishing House, ISBN 0-7069-4200-0, pp.128-9
- p. 23 Tribal Culture, Faith, History and Literature: Tangsas of Arunachal Pradesh by Narayan Singh Rao
- Rhys Davids, C.A.F. 1926. ‘Man as Willer.’ Bulletin of the School of Oriental and African Studies. 4: 29-44.
- Silk, Jonathan A. 2008 ‘Putative Persian perversities: Indian Buddhist condemnations of Zoroastrian close-kin marriage in context.’ Bulletin of the School of Oriental and African Studies, 71: pp 433–464.
- van Geel, B. et al. 2004. Climate change and the expansion of the Scythian culture after 850 BC: a hypothesis Journal of Archaeological Science. 31 (12) December: 1735-1742.
- Witzel, Michael. 1997. The Development of the Vedic Canon and its Schools: The Social and Political Milieu (Materials on Vedic Śākhās, 8) in Inside the Texts, Beyond the Texts. New Approaches to the Study of the Vedas. Harvard Oriental Series. Opera Minora, vol. 2. Cambridge 1997, 257-345