Apolinario Mabini y Maranan was a Filipino revolutionary leader, educator, lawyer, and statesman who served first as a legal and constitutional adviser to the Revolutionary Government, and then as the first Prime Minister of the Philippines upon the establishment of the First Philippine Republic. He is regarded as the "utak ng himagsikan" or "brain of the revolution" and is also considered as a national hero in the Philippines. Mabini's work and thoughts on the government shaped the Philippines' fight for independence over the next century.