what is AMAZON FBA?

what is amazon FBA and how all of this work, how do u get profit out of this as i know u just buy items for cheaper and sell it for more?