The invention relates to compounds of the formula (I) ##STR1## and pharmaceutically acceptable salts thereof, wherein Ar, Z and Het are as defined herein. The compounds of formula (I) possess activity as antifungal agents. The invention also relates to pharmaceutical compositions containing said compounds of formula (I) and to methods of treating fungal infections by administering said compounds of formula (I).