Popular legend has it that the two characters are actually based on two real persons who worked either for Osman I—the founder of the Ottoman Dynasty—or for his successor Orhan I, in the construction of a palace or possibly a mosque at Bursa in the early 14th century.