Prior to taking office as attorney general, Marshall was the district attorney for Marshall County, a post he held for sixteen years. As district attorney, Marshall helped draft and pass the Brody Act—a law that makes it a homicide to kill an unborn child during an attack on the unborn child’s mother. Marshall later became the first prosecutor to secure a death sentence under the Brody Act (in a case where a man murdered his pregnant wife and was charged with the homicide of both her and her unborn child). Five years later, when this landmark case was on appeal to the Alabama Supreme Court, Marshall—now attorney general—had the privilege of defending that conviction.