French forces invaded Malta in June 1798, and the Order capitulated after a couple of days. The French occupied the island until September, when the Maltese rebelled and blockaded the French forces in the harbour area with foreign help. The Floriana Lines remained under French control throughout the blockade, and the Maltese built Tas-Samra Battery and a battery on Corradino in order to bombard them.