Swiss Railways (SBB/CFF/FFS) operates a train from Basel to Riquewihr hourly. Tickets cost $22 - $35 and the journey takes 44 min. Alternatively, FlixBus operates a bus from Basel to Riquewihr 3 times a day. Tickets cost $4 - $7 and the journey takes 1 h 15 min. Ouibus also services this route 6 times a week.
From Basel SBB train to Colmar Gare Sncf then line 106 bus to Riquewihr Poste. 2 h 19 min SFr 34. From Basel, Brausebad line 50 bus to Basel EuroAirport, EuroAirport Basel, bus to Colmar Gare Sncf, then line 106 bus to Riquewihr Poste. 4 h 2 min SFr 12. From Basel drive to Riquewihr. 48 min SFr 11.