To obtain is to get something you want or need.
After I passed the test, I obtained my driver’s license.
Example picture