Story highlights Preliminary results indicate ruling party has won enough seats for single-party rule

President Recep Tayyip Erdogan's party lost its majority in elections in June

Since then, Turkey has been hit by terrorist attacks and been drawn deeper into Syria's war

(CNN) Voters delivered a surprise win for Turkey's ruling Justice and Development Party, or AKP, in elections on Sunday.

In a major comeback from the previous general election, the AKP, led by Prime Minister Ahmet Davutoglu, seems to have secured a large enough majority of seats in parliament for single-party rule, according to preliminary results released by the semiofficial Anadolu News Agency.

The preliminary results from Sunday's vote show the AKP securing 316 seats in parliament, more than the 276 seats needed for single-party rule but shy of the 330 seats needed to take constitutional changes to referendum without reaching out to other parties.

Photos: Turkey elections: Winners and losers Photos: Turkey elections: Winners and losers Hide Caption 1 of 4 Photos: Turkey elections: Winners and losers Hide Caption 2 of 4 Photos: Turkey elections: Winners and losers Hide Caption 3 of 4 Photos: Turkey elections: Winners and losers Hide Caption 4 of 4

Speaking from his hometown of Konya, Davutoglu hailed the outcome as a "day of victory" and said "our democracy has won."

The center-left Republican People's Party, or CHP, came in second place, receiving 134 seats. It was followed by the pro-Kurdish, leftist Peoples' Democratic Party, or HDP, with 56 seats. Next came the right wing Nationalist Movement Party with 41 seats, according to the preliminary results.

Read More