 In 1804 he was sent as ambassador from Spain to France having previously given up the command of the Squadron at Brest to Don Federico Gravina in 1801.His frank bearing and firmness of character were little agreeable to the First consul, who required more flexibility in the agents employed by other powers, with greater deference to his own views and pretensions.It was imperative upon the Spanish court to conciliate the rising power of Napoleon, and Mazarredo soon heard of his recall.