Bes is a mysterious creature that it implied a certain connection to the old Ancients, who had been defeated by Ra.
As had managed somehow to attach his Ka, a piece of his soul, to the thirteenth planet in the trial and forced to work as his servant. Under the terms of the bondage, Bes resided in the Barque of Heaven, a pleasant planet that awaited those who took the trial after passing his final test and was able to travel to some of the world participated in the trial. (SG1: "The Barque of Heaven")
Once SG-1 passed the final trial his remarks implied him to be an Ancient and once SG-1 departed he ascended.