Rizal studied philosophy and letters and then medicine at the University of Santo Tomas in Manila. He also took surveying courses at Ateneo de Manila where he excelled. While in university, Rizal was involved in several organizations and had romantic relationships. He wrote several literary works and decided to continue his medical studies abroad in Spain due to rampant discrimination in the Philippines.