(Reuters) - Solomon Islands lawmakers selected a new prime minister in a secret ballot on Thursday, choosing foreign minister Jeremiah Manele, who has pledged to continue the Pacific Island nation's foreign policy that saw it grow close to China.

Governor General Sir David Vunagi announced outside parliament house that Manele had won 31 votes, to Opposition leader Matthew Wales' 18 votes.

Police have boosted security in the capital Honiara as newly elected lawmakers arrived at parliament on Thursday to vote.

A national election last month failed to deliver a majority to any political party, and two camps lobbied to win support from independents ahead of the vote for prime minister.

The election is being closely watched by China, the U.S. and neighbouring Australia because of the potential impact on regional security, after incumbent Prime Minister Manasseh Sogavare struck a security pact with China in 2022.

Sogavare, who built close ties with Beijing during five years in power, did not seek re-election to the top political office and his party backed Manele.

Manele said outside parliament on Thursday "the people have spoken", and called for calm.

Manele's OUR party, which has pledged to build more infrastructure, won 15 seats, and gained four seats under a renewed coalition with two micro parties. It needed support from independents to reach 26 seats for a majority in the 50-seat parliament. A total of 49 votes were cast with one lawmaker absent.

Lowy Institute research fellow Mihai Sora, a former Australian diplomat in the Solomon Islands, said Manele has "a strong track record of working well with all international partners", compared to Sogavare who was "a polarising figure".

Australian National University's Pacific expert Graeme Smith said Manele was capable and "a big change in style" for the Solomon Islands.

Wale, in a 20-seat coalition of opposition parties called CARE, said on Wednesday the government had failed to create jobs and the economy was dominated by logging and mining companies which shipped resources to China, while health clinics were unable to obtain basic medications such as paracetamol.

(Reporting by Kirsty Needham in Sydney; Editing by Lincoln Feast.)

By Kirsty Needham