A defense lawyer manages pretrial motions
https://paxtonsqkb142.capitaljays.com/posts/what-to-expect-during-your-first-meeting-with-a-criminal-lawyer
A defense lawyer manages pretrial motions, like dismissal for insufficient evidence or suppression of unconstitutional searches.