 Juan de Cagigal, Governor of Havana, had learned of the defeat and had fallen into disfavour with Gálvez  and was about to remove him from command altogether.
<fluency>  Juan de Cagigal, Governor of Havana, had learned of the defeat and had fallen into disfavour with Gálvez  and was about to remove him from command altogether.
 Juan de Cagigal, Governor of Havana, had learned of the defeat , had fallen into disfavour with Gálvez and was about to remove him from command altogether.