Selim I, the great Turkish sultan, served as the governor of Trabzon for 22 years between 1489 and 1511. He became the governor of the sanjak of Trabzon at the age of 19, and acted like a president rather than like a governor of a sanjak. He even formed an army from the people of Trabzon against possible attacks to the sanjak. In 1491, he had the walls of Trabzon repaired, increased the number of his soldiers, and gave importance to the equipment of the soldiers.