A public defender is a lawyer usually holding public office whose duty is to defend accused persons unable to pay for legal assistance.
Public defenders may work for the government or may be appointed by the court from a list of private attorneys.