Answer
Before Andrej Babiš was Prime Minister of the Czech Republic, the Civic Democratic Party and the Social Democratic Party had both held the position. The Civic Democratic Party was in power from 1992 to 1997, and the Social Democratic Party was in power from 1998 to 2006 and from 2013 to 2017. Babiš's party, ANO 2011, has been in power since 2017.