In 1877, at the age of 16, he finished school (Bachelor of Arts) from the Ateneo Municipal de Manila. In the same year, he went to another school to study Philosophy and Letters at the University of Santo Tomas. At the same time, he took classes to become a surveyor and assessor at the Ateneo. In 1878, he went to the University of Santo Tomas to become a doctor. He stopped in his studies when he felt that the Filipino students were not being treated right by the priests who were also their teachers. On May 3, 1882, he went by boat to Spain. In Spain, he continued his studies at the Universidad Central de Madrid. On June 21, 1884, at the age of 23, he got his degree and became a doctor. On June 19,1885, at the age of 24, he got another degree in Philosophy and Letters.