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.