Answer
Masaryk served as president of Czechoslovakia from 1918 to 1935, a period of 17 years. During his presidency, he played a pivotal role in shaping the newly independent nation, establishing democratic institutions, and promoting social and economic reforms. Masaryk's leadership and vision helped lay the foundation for Czechoslovakia's development as a modern and prosperous state.