the right bike (size and geometry) with the right saddle for the type of riding you are doing (and your particular body type) is the first part.
after that, shorts, shoes, and gloves (all the parts that are in contact with the bike)
and finally friction reduction in moving parts (of your bike as well as your body. less bike friction is more distance easier, less body friction is reduced chafing)