The custom of touching wine glasses comes from a medieval host’s precaution against being poisoned by a guest, or vice versa.
The original ritual was that while touching glasses, a little wine was exchanged, poured from one goblet into the other, around the table.
Then everyone took their first drink at the same time.
By mixing drinks this way, the host and everyone else could be assured that no assassin was in their midst.