Synthesis of a panel of iso(thio)urea-type ring-modified castanospermine analogues bearing a freely mutarotating pseudoanomeric hydroxyl group results in tight-binding beta-glucosidase inhibitors with unusual binding signatures; the presence of an N-octyl substituent imparts a remarkable anomeric selectivity, promoting strong binding of the appropriate beta-anomer by the beta-glucosidase.