Question: Who was the last Safavid ruler who was defeated in 1722 by the Pashtuns in Isfahan?
Sentence: Following a gradual decline in the late 1600s and early 1700s, which was caused by the internal conflicts, the continuous wars with the Ottomans, and the foreign interference (most notably the Russian interference), the Safavid rule was ended by the Pashtun rebels who besieged Isfahan and defeated Soltan Hosein in 1722.
Answer in sentence: yes