Rizal began writing his novel Noli Me Tangere in Madrid in 1884, inspired by Uncle Tom's Cabin to write about the suffering of Filipinos under Spanish rule. He worked on it throughout travels in Europe, completing it in 1886 in Berlin. Unable to find a publisher, his friend Maximo Viola financed its publication in Berlin in 1887. The novel follows the story of Juan Crisostomo Ibarra and his love for Maria Clara, and exposes abuse under the friars in the Philippines. It was an instant success but also generated controversy for its criticisms, with the church labelling Rizal a subversive.