The invention provides compounds of formula (I), and pharmaceutically and agriculturally acceptable salts thereof: wherein: R1, R2, R3, R4, R5, R6, A1, L1 and n are as defined herein. These compounds and their pharmaceutically acceptable salts are useful in prevention or treatment of a fungal disease. Compounds of formula (I), and agriculturally acceptable salts thereof, may also be used as agricultural fungicides.