Answer:
They got their Shakya surname from “Saknu” in Nepali and eldest prince Okkakamukh became the king of Kapilvastu. That is how the Shakya dynasty originated and then the Shakyas started ruling over Kapilvastu before the birth and the enlightenment of Buddha. ... Also, the Shakyas were great warriors.