Throughout the 18th century, a fortress was designed at Montjuïc overlooking the harbour. On 16 March 1794, Regardless that France and Spain have been at war, the French astronomer Pierre François André Méchain was given go away to enter the fortress to produce observations which were to be used to evaluate the distance from Dunkirk to Barcelon