Battle of Trafalgar
The French learned that some British ships had been seen in Gibraltar and thought that meant that the British fleet was not as strong as it had been before. The French decided that it was the best time to leave Cadiz.