If you can’t afford a criminal defense lawyer, you may be able to get a court-appointed lawyer if you qualify for it. These lawyers are provided by the government and are available to those who cannot afford a private lawyer.