Great question. Becoming a lawyer takes a good bit of commitment and dedication. First, you must obtain a four year degree from an accredited college or University. It doesn't matter what you major in, however, there are some majors that may benefit you better in law school such as Political Science, Criminal Justice, English, Psychology, or Business.
Second, you must practice for the LSAT exam which is the law school admissions test. I would recommend taking a paid course or tutor to best prepare you for the test. The higher the score, the better the chance of you getting into the law school of your choice.
(Also keep your character fitness always in mind while in undergrad and throughout the rest of your life as your behavior in society follows you as an attorney and aspiring one)
Third, Law School full time is three years typically. Some schools have parttime programs which extend this time to four years. Upon completing law school you must prepare to sit for the bar exam in the state in which you wish to practice. Be sure to thoroughly study the law for the state you are sitting for and use all prepratory guides available for said state bar. ( Finishing a program at a well ranked law school increases your chances of passing the bar as those schools typically tout high bar passage rates.)
Once you have completed these things you will be ready for law practice. This should take you around 7 years including four years of full time undergrad and 3 years of full time law shool. Best of luck to you!