Keloğlan and Tekin are two brothers. One night, they come to a coffee shop with the desire to become apprentices. Since the coffee shop has not had any customers for a long time, they are not hired. The two, who spend the night there, wake up when three dervishes arrive. With the dervishes' prayers, the coffee shop fills up with customers. The two brothers are regarded as miraculous. Tekin's fame spreads throughout the world, and princesses from India, China, and Kaf want to marry him, sending envoys to the coffeehouse. Tekin rejects all these offers and eventually falls in love with Zeynep, a shepherdess.