He probably began his musical career as a singer in a choir of a local church. Later he studied to become a priest in the cathedral at Valencia, which included lessons in music. On 15 May 1665, at 20 years of age, he was named the assistant organist of the cathedral. A year later, upon the death of his predecessor, he became the principal organist. On 22 September 1668 he was ordained as a priest. He kept his position as principal organist for 45 years, but from 1703 on his health often necessitated that a substitute be found.