In the United States, a public defender is a lawyer appointed by the courts and provided 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 employed by the state or federal governments. The public defender program is one of several types of criminal legal aid in the United States.