Sixth Amendment provides right to counsel for criminal prosecutions. It's the rare positive right - if you do not have lawyer, or cannot afford one, the state will provide one. (Generally an overworked, underpaid one...)
Random anecdote - I sat as a juror on a felony trial where the defendant was represented by a public defender. Before it started I pictured a bumbling public defender with bags under their eyes from lack of sleep.
I was surprised when the public defender ran circles around the prosecutor. It was actually the prosecutor who I had some sympathy for. She seemed overworked and unprepared.
Albeit it was a big case for the city, so I assume the public defenders office decided it was a case worth winning, but damn, that changed my opinion of public defenders.