When installing a window what would be used under the sill to seal the window from air and water infiltration?

When installing a window what would be used under the sill to seal the window from air and water infiltration?