The Kekeya kingdom (also known as Kekaya, Kaikaya, Kaikeya etc.) was a kingdom mentioned in the ancient Indian epic Mahabharata among the western kingdoms of then India. The epic Ramayana mentions one of the wives of Dasharatha, the king of Kosala and father of Rama, was from Kekeya kingdom and was known as Kaikeyi. Her son Bharata conquered the neighbouring kingdom of Gandhara and built the city of Takshasila. Later the sons and descendants of Bharata ruled this region from Takshasila.
In Mahabharata, a Kekaya prince was mentioned, who joined the Pandavas in the Kurukshetra War. He was the eldest among the six brothers and was described as a king known as Vrihatkshatra who is banished from his kingdom by his own kinsmen, like the Pandavas who were banished from their Kuru Kingdom, by their cousin brothers viz the Kauravas headed by Duryodhana. Thus this Kekaya brother was circumstantially inclined to ally with the Pandavas. Besides this, the 6 Kekaya brothers were sons of the sister of Kunti, the mother of the Pandavas, making them cousins. In the Kurukshetra War, the Kekaya brother fought against his own kinsmen, viz the other 5 Kekaya brothers who sided with Duryodhana.