By the end of the 19th century, Madagascar had the most developed and modern school system in pre-colonial Sub-Saharan Africa. Access to schooling was expanded in coastal areas during the colonial period, with French language and basic work skills becoming the focus of the curriculum. During the post-colonial First Republic, a continued reliance on French nationals as teachers, and French as the language of instruction, displeased those desiring a complete separation from the former colonial power. Consequently, under the socialist Second Republic, French instructors and other nationals were expelled, Malagasy was declared the language of instruction, and a large cadre of young Malagasy were rapidly trained to teach at remote rural schools under the mandatory two-year national service policy.