Which amendments were used gave Gideon the right to counsel?

The 6th Amendment, which guarantees the right to counsel in criminal cases, was used to give Clarence Gideon the right to counsel in his landmark case Gideon v. Wainwright.