A public defender is an attorney appointed to represent people who cannot afford to hire one. It is also a literal translation of the Spanish language term abogado de oficio, which usually refers to an ombudsman office; it is also the English language title of the Jamaican ombudsman.
Brazil is the only country where an office of government-paid lawyers, with the specific purpose of providing legal assistance and representation to the destitute, free of charge, is established in the Constitution. In the United States, a 1963 US Supreme Court case Gideon v. Wainwright ruled that the Sixth Amendment of the Bill of Rights requires the government to provide free legal counsel to indigent defendants in criminal cases. Many other countries provide people with public defenders.
The Constitution of Brazil uniquely provides for a public defender's office (Defensoria Pública) at both state and federal levels. Public defense is a right to poor people, who must declare, formally, that they cannot afford regular legal aid, to benefit from public defenders' services.
Public Defenders, like Prosecutors and Judges, are admitted to their positions through civil service examination. The public defender's office assists the poor and lower middle-class in both civil and criminal matters, although the poorest states in the country are still struggling to set up a state public defenders office.
Public defense in Brazil dates back to 1897, when a decree mandated government-funded legal assistance in the state of Rio de Janeiro, then called Legal Assistance (Assistência Jurídica). The Constitution of 1937 extended Assistência Jurídica to the entire country, but without the same effectiveness that is derived from the current, 1988 Constitution.
Legal assistance in Singapore is provided by the State and the Pro Bono Services Office of the Law Society.
The State provides legal assistance in criminal cases where the accused faces the death penalty. The government also provides legal representation and advice in civil cases such as for divorce, child custody, adoption, wrongful dismissal, letters of administration/probate, tenancy disputes, claims in contract and tort, through the Ministry of Law's Legal Aid Bureau (LAB). Assistance from the LAB is not free, and most clients are required to contribute towards the costs of the work done, but the amount a client is charged depends on a number of factors, among them the client's financial means.
The Pro Bono Services Office of the Law Society runs the Criminal Legal Aid Scheme, which provides criminal legal assistance to the poor and needy who are unable to afford a lawyer, and are facing charges in a Singapore court for non death-penalty offences under statutes covered by CLAS. 
Germany provides legal representation, legal advice, and help in covering court costs in civil cases to those who cannot raise the necessary funds to hire an attorney, but only when there is a reasonable chance of success. In criminal cases where the defendant faces at least one year of imprisonment, the defendant has the right to legal counsel. Although there is a right to legal defense, there is no organized public defender system. Instead, any lawyer can be appointed to provide counsel to a specific defendant, and the defendant can select a specific lawyer. Questions of payment are deferred until the end of a trial, and the court will decide the cost of the case to the losing party. The defendant will not be charged for legal services if acquitted. If convicted, the defendant will be required to pay the lawyer's expenses unless the court finds that the defendant is indigent.
There are a small number of Public Defender Service offices in England and Wales with lawyers employed directly by the Legal Aid Agency to provide advice in police stations and representation in magistrates and crown courts. The majority of state funded criminal defence work, however, is provided by private lawyers contracted to the Legal Aid Agency and paid by the case under the legal aid scheme.
In Scotland a wider network of Public Defender Solicitor Office lawyers employed by the Scottish Legal Aid Board are available to represent those accused of crimes in addition to private lawyers paid under the legal aid scheme.
In the United States, the term public defender is often used to describe a lawyer who is appointed by a court to represent a defendant who cannot afford to hire an attorney. More correctly, a public defender is a lawyer who works for a public defender's office, a government-funded agency that provides legal representation to indigent defendants. The court appoints the public defender's office to represent the defendant, and the office assigns a lawyer to the defendant's case. In the federal criminal court system and some states and counties, representation is through a publicly-funded public defender office.
Other courts may appoint private lawyers who have agreed to represent indigent defendants, with appointment being either on a contractual basis through which the lawyer, through which the lawyer accepts an agreed number of cases from the court for the term of the contract, or a case-by-case basis.
The 1963 US Supreme Court case Gideon v. Wainwright held that the Sixth Amendment's right to counsel provision requires the government to provide legal counsel to indigent defendants in criminal cases. Different jurisdictions, however, use different approaches in providing legal counsel for criminal defendants who can't afford private attorneys.
In Hungary, the police, the public prosecutor or the court (depending on what individual cases require) appoints a criminal defender at the state's cost to defend those who can not afford a chosen lawyer. The defence counsel's participation is required by the Criminal Procedure Act. Usually a private lawyer is appointed, one for each defendant, and conflict of interest between contradicting suspects is avoided, e.g. the same lawyer may not represent two accused whose evidence is mutually contradictory. If convicted, the defendant is in principle liable for the fee, but is rarely pursued.
- "Gideon v. Wainwright". Retrieved 1 February 2015.
- "A DEFICIÊNCIA DA DEFENSORIA PÚBLICA BRASILEIRA NA EFETIVAÇÃO DO ACESSO A JUSTIÇA". Retrieved 1 February 2015.
- "DEFENSORIA PÚBLICA NO BRASIL – M". www.jfontenelle.net.
- III Diagnóstico da Defensoria Pública. Ministry of Justice. p. 105
- "Brasil". TNH1. Retrieved 1 February 2015.
- "Defensoria Pública do Estado do Rio de Janeiro". Retrieved 1 February 2015.
- "Country Information". Retrieved 1 February 2015.
- "What types of cases are handled by LAB?". Retrieved 1 February 2015.
- "Is Legal aid free?". Retrieved 1 February 2015.
- "Criminal Legal Aid Scheme". probono.lawsociety.org.sg.
- "Legal aid - Germany". European Commission. 22 March 2005.
- "How To Germany - German Law and the German Legal System". www.howtogermany.com.
- "Legal aid in Germany: Outline of the Legal Aid System" (PDF). Open Society Foundations. Retrieved June 1, 2017.
- Liptak, Adam (13 Jul 2007). "Gap Seen Between Court-Appointed Lawyers and Public Defenders". New York Times. Retrieved 31 May 2017.