The Solomon Islands Court of Appeal has ruled that Prime Minister Manasseh Sogavare's removal of Primo Afeau as attorney-general was lawful.
Mr Afeau challenged the prime minister's decision in the High Court and the Court of Appeal after his removal last year.
In its ruling, the Court of Appeal declared the Judicial and Legal Services Commission was entitled to accept that the prime minister had validly advised it to remove Afeau and was legally required to follow that advice.
The Court says the appointment and termination of an attorney-general were at the pleasure of the Crown because of the special role and responsibilities of the attorney-general.
Following Mr Afeau's dismissal, an acting attorney-general stood in until fugitive Australian lawyer Julian Moti was sworn in to the post last month