Chess finds its earliest predecessor in the ancient Indian war game of chaturanga, mentioned in the Mahabharata. By the 7th century, chaturanga evolved into shatranj, introducing distinct powers for different pieces and the pivotal role of the king – elements fundamental to modern chess.