During the rule of Ilhan, from the lineage of Oguz Khan, in Mongolian land, Sevinc Khan, the ruler of the Tartars declared war against the Mongolian land. He beat the army under the command of Ilhan, by obtaining help from the Kirghiz (Kırgız) and other clan. Only Kiyan, younger son of Ilhan and his wife; and his niece Nukuz and his wife managed to run away and they were saved. They decided to go somewhere where the enemy could not find them. Following a path opened by the wild sheep, they reached a narrow pass on a high mountain. When they reached a place with rivers, streams, various vegetables, meadows, fruit trees and many hunts passing through this pass, they thanked God and decided to stay there. They called this place combining the words "Ergene" meaning "mountain pass" and "kon" meaning "steep." The sons of Kıyan and Nukuz multiplied. After four hundred years, they and their herds became so many that they could not fit in Ergenekon. The pass through which their ancestors reached was forgotten. They looked for a pass in the mountains around Ergenekon.

A blacksmith told that the road could be opened if they melted the iron part of the mountain. They piled a row of woods and a row of coal where the iron was located and they set a fire. They blew on the fire with bellows, which were located on seventy points. The iron melted and a hole enough for a camel to pass through was opened.The Turks, originating from the lineage of Ilhan returned to their previous land with more force and they took their revenge.

Every year they have celebrated a feast on 21st March, which is the date when they came out of Ergenekon. On this day, they make an iron part red-hot, and when the iron is very red, first the Khan and then the chieftains forge the iron, putting it on the anvil. Today, it is celebrated for both the freedom again and the spring festival.