At any critical stage of the proceeding.
An accused individual has a right to have an attorney present at all critical stages of a criminal prosecution. Certainly, at an arraignment where their criminal charges are read, at any motion's hearing where a substantive decision might be made on the case, and certainly at trial or on appeal. The individual also has a right to have an attorney present during what's called a custodial interrogation. That's where an individual -whether or not formally arrested -is being questioned by police under circumstances where he or she feels they have no right to leave the interrogation room.