This is an excellent question. For many individuals who have been separated for more than a year and are contemplating an uncontested divorce where there are no children, no property, no debts, no alimony issues there are forms that you can use represent yourself. You are not required to hire an attorney. If you consider this route, make sure to look for forms with specific instructions that you feel comfortable following. Additionally, legal services offers free classes to help individuals represent themselves in a divorce.
If there are contested issues, consult with an attorney. You don't have to hire the attorney if you are not satisfied with a consultation. Start early, ask questions, and keep a journal of what is going on in your life.