Gore Verbinski did not direct Pirates of the Caribbean: On Stranger Tides. Rob Marshall directed the fourth installment.
Verbinski directed the first three films but declined the fourth due to:
His departure was a personal choice; the series continued without him.