The anecdotes in the Epics and Puranas mainly turn upon the doctrine of incarnation. Twenty-two incarnations of Vishnu have been mentioned in the Bhagavata Purana. The god Shiva has also some incarnations. Ten incarnations of Vishnu are prominently described in Hindu Literature. The popular incarnations of Vishnu are Rama and Krishna. They were kings in their ages, therefore Guru Granth Sahib specifically states that these kings of different periods were raised to the status of Avatars.
References :
1. Kohli, Surindar Singh, Dictionary of Mythological References in Guru Granth Sahib, 1993