An amino acid has a central carbon attached to an amino group, a carboxyl group, a hydrogen atom, and an R group. The R group, or side chain, varies among amino acids and determines many of their chemical properties. In water, the amino and carboxyl groups commonly carry charges.
For example, glycine has a hydrogen side chain, while valine has a nonpolar side chain. Nonpolar side chains often cluster away from water, whereas charged or polar side chains can interact with water. These interactions help a chain fold.
Think of amino acids as letters of an alphabet and a protein sequence as a word. The same kinds of building blocks can form different sequences, just as letters can form different words. The analogy has limits: a protein also folds into a three-dimensional structure.
The 20 standard amino acids can be arranged in many sequences. A change in sequence can alter side-chain interactions and therefore change folding or function, although not every change has a noticeable effect. Rare amino acids, such as selenocysteine, can also occur in some proteins.