linguistic:translation, structural:summarization
Courts and law enforcement

Martial law was declared when Russia invaded in February 2022, and continues. The courts enjoy legal, financial and constitutional freedom guaranteed by Ukrainian law since 2002. Judges are largely well protected from dismissal (except for gross misconduct). Court justices are appointed by presidential decree for an initial period of five years, after which Ukraine's Supreme Council confirms their positions for life. Although there are still problems, the system is considered to have been much improved since Ukraine's independence in 1991. The Supreme Court is regarded as an independent and impartial body, and has on several occasions ruled against the Ukrainian government. The World Justice Project ranks Ukraine 66 out of 99 countries surveyed in its annual Rule of Law Index.

Prosecutors in Ukraine have greater powers than in most European countries, and according to the European Commission for Democracy through Law "the role and functions of the Prosecutor's Office is not in accordance with Council of Europe standards". The conviction rate is over 99%, equal to the conviction rate of the Soviet Union, with suspects often being incarcerated for long periods before trial.

In 2010, President Yanukovych formed an expert group to make recommendations on how to "clean up the current mess and adopt a law on court organization". One day later, he stated "We can no longer disgrace our country with such a court system." The criminal judicial system and the prison system of Ukraine remain quite punitive.

Since 2010 court proceedings can be held in Russian by mutual consent of the parties. Citizens unable to speak Ukrainian or Russian may use their native language or the services of a translator. Previously all court proceedings had to be held in Ukrainian.

Law enforcement agencies are controlled by the Ministry of Internal Affairs. They consist primarily of the national police force and various specialised units and agencies such as the State Border Guard and the Coast Guard services. Law enforcement agencies, particularly the police, faced criticism for their heavy handling of the 2004 Orange Revolution. Many thousands of police officers were stationed throughout the capital, primarily to dissuade protesters from challenging the state's authority but also to provide a quick reaction force in case of need; most officers were armed.