Answer
Grand Vizier, the highest-ranking official in the Ottoman Empire, imprisoned Sabbatai. The Grand Vizier was responsible for the empire's administrative and political affairs and acted as the chief advisor to the Sultan. In Sabbatai's case, the Grand Vizier likely played a role in his imprisonment due to concerns about his messianic claims and the potential for social unrest they could cause.