Rizal studied at Ateneo Municipal de Manila from 1872 to 1877, where he excelled academically, becoming the head of his class. He then studied philosophy and letters at the University of Santo Tomas from 1877 to 1882 but had an unhappy experience due to discrimination from Spanish professors and students. He left before completing his medical degree. Rizal also had several romantic relationships during this time. He then decided to continue his studies abroad in Spain with his family's support.