In the 18th century, a fortress was constructed at Montjuïc overlooking the harbour. On 16 March 1794, Despite the fact that France and Spain have been at war, the French astronomer Pierre François André Méchain was offered go away to enter the fortress to produce observations which were to be used to evaluate the gap from Dunkirk to Barcelona,