Tirmizi (surname)
Tirmizi or Tirmidhi or Termezi () is a surname in Central Asia and South Asia. Their forefathers migrated in the 9th or 10th CE to what is now Pakistan (at that time Ancient Persia) from Tirmiz, a town of modern-day Uzbekistan, hence the use of the surname of Tirmizi..

Tirmizi families settled in Pakistan, Afghanistan and India. They are descended from the Islamic prophet Muhammad through his grandson Husayn ibn Ali, son of Muhammad's daughter Fatimah . However, scholarly opinion holds that they are instead Persian/Tajiks who adopted their supposed Sayyid origins later on.

Supposed origins
Tirmizis mostly follow Sunni Islam.

Present day
Tirmizis settled in Pakistan are mostly descendants of the supposed Sufi saint Ali  Tirmizi (Tajik) aka Pir Baba. Pir Baba's grave and shrine is in Bacha Killay village in the mountainous Buner District of present Khyber Pakhtunkhwa.