What does a Defensive Attorney do?

A defense attorney will defend a person who is accused of committing a crime, and do their best to prove them innocent, as opposed to a prosecuting attorney, who tries to prove guilt.