From the late 18th century, Imperial Russia switched to a more aggressive geopolitical stance towards its two neighbours and rivals to the south, namely Iran and the Ottoman Empire. In the spring of 1796, by Catherine II's order, General Valerian Zubov's troops started a large campaign against Qajar Persia. Zubov had sent 13,000 men to capture Baku, and it was overrun subsequently without any resistance. On 13 June 1796, a Russian flotilla entered Baku Bay, and a garrison of Russian troops was stationed inside the city. Later, however, Emperor Pavel I of Russia (reign | 1796 | 1801}}) ordered the cessation of the campaign and the withdrawal of Russian forces following the death of his predecessor, Catherine the Great. In March 1797 the tsarist troops left Baku and the city became part of Qajar Iran again.