Rizal received an excellent education both in the Philippines and abroad. He first studied under private tutors in Calamba before attending the Ateneo Municipal de Manila, where he graduated with highest honors. He then studied philosophy at the University of Santo Tomas and later shifted to medicine. Rizal furthered his studies in Europe, obtaining degrees from the University of Madrid and specializing in ophthalmology in Paris and Heidelberg. Despite warnings not to return, Rizal was determined to go back to the Philippines in 1887 to serve his people and operate on his mother's eyes, demonstrating his commitment to his homeland.