The study of how drugs interact with the body and the mechanisms by which drugs produce their effects.