Sayyid Ali Tirmizi (Pashto: سيد علي ترمذي), more commonly known as Pir Baba (پير بابا), was a Naqvi Sayyid, and a Sufi who settled in Buner (present-day Khyber Pakhtunkhwa, Pakistan) among the Yusufzai Pashtuns. He was probably born in 908 AH (1502 CE), in Fergana (present-day Uzbekistan), of Sayyid descent, died in AH 991 (1583 CE). He was a supporter of the Mughal emperor Babar, and was an opponent of Bayazid Pir Roshan.