After the taking of Malta by Napoleon in 1798, French forces were garrisoned in the city. Soon after the Maltese rebelled and the Grand Harbour area was blockaded by Maltese rebels aided by Britain, Portugal and Naples. The French eventually capitulated in September 1800, and Malta became a British protectorate. The Royal Navy's Mediterranean Fleet established its base in Birgu, and British forces remained stationed in Birgu until 1979.