Syed Ali Tirmizi (), more commonly known as Pir Baba (), was a Sufi Pir who settled in Buner in present-day Khyber Pakhtunkhwa, Pakistan.
He was a Hussaini Syed, probably born in 908 AH (1502 CE), in Fergana (present-day Uzbekistan), of Sayyid descent. He died in AH 991 (1583 CE). He and his disciple Akhun Darweza Baba had major differences with Pir Roshan regarding his 'Roshnai Movement'. Hazrat Pir Baba was a stalwart of the Chishti,kabrawi,Sarwardi and Qadri Sufi order, which emphasised strict adherence to Shariah of Islam.
He and his disciple Akhun Darweza baba saw Pir Roshan's teachings as a deviation from the path of prophet Muhammad and the consensus of scholars. Moreover, they were aligned with the existing social and tribal hierarchy. Hazrat Pir Baba and Akhun Darweza baba had theological differences with Pir Roshan's teachings. They saw his teachings a dangerous innovation(bid'ah). The Mughal fought him because he challenged their rule.
Baba's grave and shrine is in Pacha Killay village in the mountainous Buner District of present-day Khyber Pakhtunkhwa.
In 2009, the Sufi shrine of Pir Baba was closed down by Taliban militants temporarily.