Answer
Ecevit served as the Prime Minister of Turkey from 1974 to 1975, 1977 to 1978, 1978 to 1979, and 1999 to 2002, making his final term end in 2002. Ecevit's tenure was marked by significant events such as Cyprus Peace Operation and the economic crisis in 2001. He was known for his commitment to social justice and his advocacy for a peaceful resolution of the Cyprus conflict.