There he received his first musical training given by the mestres de capella Francesc Navarro (until 1650) and Dídac Pontac.
On 7 June 1659, Gargallo succeeded the mestre de capella of the Huesca Cathedral, a position where Vargas i Babán had preceded him.
As usual, he entered temporarily until the death of the holder, Marcià Albareda (21 August 1673), replacing him after that.
Among his disciples in Barcelona, there were the future mestres de capella and composers Josep Gaz [ca] and Isidre Serrada.
Gargallo died on 19 February 1682 in Barcelona, and was replaced temporarily by Jaume Riera, until Joan Barter [ca] took on the position on 13 July 1682.