A European-style education system was first introduced in Egypt by the Ottomans in the early 19th century to nurture a class of loyal bureaucrats and army officers. Under British occupation investment in education was curbed drastically, and secular public schools, which had previously been free, began to charge fees.