Post caps serve two functions: they protect the hollow top of a tube post from moisture entry, which prevents internal rusting, and they provide a finished, decorative appearance to the top of a fence or railing post. Cap styles range from simple flat or pyramid tops to ball caps and ornate cast iron designs.