While he was in charge of the Van Military Service Branch, he became a deputy of Dersim at the election held for the last period of the Meclis-i Mebusan.
In the Sheikh Said Rebellion, Hasan Hayri was arrested and sentenced to death at the Eastern Independence Court, arguing that he participated in actions to help the insurgents.
[3] In 1923, Şerif Pasha demanded independence for the Kurdish people at the Congress of the Treaty of Lausanne, where Turkish nationalists were engaged in negotiations.
Following the Congress of Lausanne, Hasan Hayri was arrested for wearing Kurdish clothes and for conspiracy against national security and was sentenced to death.
Before his death he was asked his last request and said: "bury my body in the way of Kurdish people, till any Kurd passes from there spitting on my grave."