Morocco's Islamists came first in regional elections seen as a test of their popularity after nearly four years in power, but trailed the liberal opposition in municipal polls, results showed Saturday.

Friday's double elections were viewed as a gauge of the political climate ahead of a general election next year.

They come four years after Arab Spring protests ushered in constitutional reforms by the monarchy in the North African nation.

Prime Minister Abdelilah Benkirane's Justice and Development Party (PJD) won 25.6 percent of 678 seats in regional councils.

The Party of Authenticity and Modernity (PAM), a liberal opposition party founded by a politician close to the king, came second with 19.4 percent.

It was the first opportunity for Moroccan voters to elect their regional councilors directly.

The PJD came first in five of Morocco's 12 regions, including in Casablanca, Rabat and Fez, cities with large populations.

In the municipal polls, however, the PAM came first with 21.1 percent of 31,503 seats, while the conservative opposition Istiqlal Party followed with 16.2 percent.

The PJD came third with 15.9 percent.

Earlier the interior ministry had said a tally of 80 percent of the overall votes indicated the PAM was leading.

The PJD hailed its stronger performance compared with the previous local elections in 2009, when it finished with 5.4 percent, far behind PAM which scored 21 percent.

"These results confirm the confidence of the Moroccan people in the work of the government," Abdelali Hamieddine, a senior official with the Islamist party, said of the earlier partial results.

The interior ministry said turnout was 53.6 percent, little changed compared with 2009. About 15 million people were eligible to vote.

Habiba Ramzi, a voter in her 80s, said she hoped that those elected "will think about the poor this time".

"To those candidates I say 'enough corruption and lies,'" she said, adding that she wanted to see more done to improve education. (bbn)