I’m not a medical doctor so take what I say with a grain of salt. It also depends upon how severe the depression is. Usually psychotherapy is the first resort. That may or may not be combined with medication, if the depression does not respond then more advanced treatment may be used, for instance ECT.