Thioesters are very important in biochemistry. They are made in the body during reactions that make fatty acids. They are also important intermediates in the production of ATP, which is the molecule that gives energy to the body.