Complex sentence: Later, temples also became centres of education; religious education was compulsory, but secular subjects were also taught.
Split into simpler sentences: Later, temples were also centres of education. Religious education was compulsory but secular subjects were also taught.