The fortress changed hands again in the late 18th century when the Dutch handed it over to the British to prevent it from falling into the hands of Napoleon's expansionist France. The English were wary of maintaining the fortification and ordered its destruction in 1806. The fort was almost totally demolished but for the timely intervention of Sir Stamford Raffles, the founder of modern Singapore, who was sent on sick leave from Penang to Malacca in 1807. It was Captain William Farquhar, tasked with the destruction of the fort and town, who decided to save two of the gateways to the fort, including the Santiago Gate, as well as the Stadthuys, church and jail.