Methodology for the selective functionalisation of castanospermine is outlined which has allowed the synthesis of a number of analogues selectively modified at C-6. Australine and some australine analogues have also been synthesized from castanospermine.