The static synchronous series compensator (SSSC) can add a series reactance to the transmission line, and when it is fed using auxiliary signals, it can participate in damping inter-area oscillations by changing the series reactance. In this paper, the effect of the SSSC on small-signal stability is investigated. The design of a controller for damping oscillations is designed and discussed. Moreover, using the firefly and the harmony search algorithms, the optimal parameters controlling SSSC are addressed. The effectiveness of these two algorithms and the rate of SSSC participation in damping inter-area oscillation are also discussed. MATLAB software was used to analyse the models and to perform simulations in the time domain. The simulation results on the sample system, in two areas, indicated the optimal accuracy and precision of the proposed controller.