Gibraltar became part of the Visigothic Kingdom of Hispania following the collapse of the Roman Empire and came under Muslim Moorish rule in 711 AD. It was captured during the War of the Spanish Succession by an Anglo-Dutch fleet in the name of Charles VI of Austria, the Habsburg pretender to the Spanish throne. As the territorial dispute intensified, Spain closed its border with Gibraltar between 1969 and 1985 and communications links were severed.