Opelika is a city in and the county seat of Lee County in the east central part of the U.S. state of Alabama. It is a principal city, along with Auburn, in the Auburn-Opelika, Alabama Metropolitan Statistical Area (MSA). According to 2005 Census estimates, the population of Opelika is 23,804.