A European Union police mission in Bosnia has ended after a decade of training local police forces and overseeing law enforcement agencies that were rebuilt almost from scratch after the 1992-95 war.

The pullout of around 130 European Union Police Mission (EUPM) officials came as the Balkan country is hoping to apply for EU membership this year.

Bosnia will have to show Brussels that its law enforcement officials are now capable of fighting widespread corruption and organised crime.

The EUPM, the first police mission set up by the EU, was deployed in 2003 and it initially comprised some 500 police officials in charge of training local police and monitoring law enforcement agencies.

Over the years, the mission has been reduced to about 130 officials.

The operation, replacing a United Nations police mission, was seen as a litmus test for the EU's common defence policy.

Bosnia is still struggling to build a viable state from the wreckage of the war.

An international envoy and a peacekeeping force remain in place in the country, which since the war ended has been split into two autonomous regions.

Bosnia's progress toward EU accession talks remains hamstrung by rivalry between its Serb, Croat and Muslim communities, which took 16 months to agree on a central government after an election in October 2010.

Some of the EUPM functions would be handed over to a new unit of the EU delegation in Bosnia, with Special Representative Peter Sorensen serving as mediator between local law enforcement agencies and EU counterparts.