in the united states, a public defender is an attorney-at-law appointed by the courts and given by the state or federal governments to represent and advise those who cannot afford to hire a private attorney. public defenders are full-time attorneys hired by the state or federal governments. the public defender program is one of many types of criminal legal aid in the united states.