In 1863 a Spanish decree introduced universal education, creating free public schooling in Spanish, yet it was never implemented, even before the advent of American annexation. It was also the language of the Philippine Revolution, and the 1899 Malolos Constitution proclaimed it as the "official language" of the First Philippine Republic, albeit a temporary official language. Spanish continued to be the predominant lingua franca used in the islands by the elite class before and during the American colonial regime. Following the American occupation of the Philippines and the imposition of English, the overall use of Spanish declined gradually, especially after the 1940s.