Complex sentence: From 1905 to 1911 he agreed to serve as the Secretary of Public Education under the Díaz regime; however, he never made a secret of his liberal sympathies and his distaste for the politics of the authoritarian regime.
Split into simpler sentences: From 1905 to 1911, he agreed to serve as the Secretary of Public Education under the Díaz regime. However, he never made a secret of his liberal sympathies and his distaste for the politics of the authoritarian regime.