Even before the discovery of the "Katipunan", Rizal applied for a position as a doctor in the Spanish army in Cuba in a bid to persuade the Spanish authorities of his loyalty to Spain. His application was accepted and he arrived in Manila to board a ship for Spain in August 1896, shortly before the secret society was exposed. But while Rizal was en route to Spain, the "Katipunan" was unmasked and a telegram overtook the steamer at Port Said, recalling him to the Philippines to face charges that he was the mastermind of the uprising. He was later executed by musketry on December 30, 1896 at the field of Bagumbayan (now known as Luneta).