Amide and ester derivatives of 6-amino-octahydro-1,7,8-indolizinetriol are described herein. The compounds are prepared from castanospermine by replacing the appropriate hydroxy function with an amino function while protecting the other hydroxy groups in the meantime. The compounds are useful as hexosaminidase inhibitors.