One of the main purposes of the letter is to explain where justification comes from or how we are and how we aren’t justified.
Galatians is looked at by theologians as a book to do away with the law. They look at it in terms of Law OR Grace. This is not the right way to view it rather we should be looking at it in terms of Law AND Grace.