To secure something means to get it after a lot of effort.
I was able to secure a good grade on my test after weeks of studying.
Example picture