EDIRNE, Turkey — Turkey will vote in presidential and parliamentary elections on June 24. I am one of six candidates running for president. I am running from my prison cell.

I am writing from a maximum-security prison in Edirne, a city in northwestern Turkey, near the border with Bulgaria. I was arrested one year and eight months ago while I was a member of the Turkish parliament and the co-chairman of the Peoples’ Democratic Party, known as the H.D.P., for which six million people voted in the last election.

My jailers chose to imprison me here because Edirne is far from my home, family and friends in the southeastern Kurdish region of the country. My cellmate is, like me, an elected member of the parliament.

For the past few months, we have been hearing the nearly unremitting noise of construction. A large new prison is being built next door. A state of emergency was imposed on Turkey after the failed coup attempt in 2016, and existing prisons are stretched beyond their limits. The right to free expression and assembly has been cast aside, and the number of ordinary people incarcerated is growing by the day.